fermeture auto
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user