fermeture auto

This commit is contained in:
trochas
2025-12-09 15:43:16 +01:00
parent 5550f0b9dd
commit d1cd117013
4 changed files with 53 additions and 45 deletions

View File

@@ -1,7 +1,6 @@
import { collection, getDocs, getDoc } from "firebase/firestore";
import { collection, getDoc, getDocs, Timestamp } from "firebase/firestore";
import { Chantier, Reservation, Ressources, User } from "../class/class";
import { db } from "../firebase_config";
import { Timestamp } from "firebase/firestore";
import { Chantier, User, Ressources, Reservation } from "../class/class";
export async function getUsers(): Promise<User[]> {
try {
@@ -38,7 +37,7 @@ export async function getRessources(): Promise<Ressources[]> {
}
export async function getChantiers(): Promise<Chantier[]> {
const snap = await getDocs(collection(db, "chantiers"));
const snap = await getDocs(collection(db, "chantier"));
const chantiers: Chantier[] = [];
for (const docSnap of snap.docs) {