overlay confirm en cours
This commit is contained in:
@@ -84,7 +84,7 @@ function convertReservation(res: any): Reservation {
|
||||
export async function changeChantierStatus(chantierId: string, newStatus: string): Promise<void> {
|
||||
try {
|
||||
const chantierRef = doc(db, "chantier", chantierId);
|
||||
await updateDoc(chantierRef, { status: newStatus });
|
||||
await updateDoc(chantierRef, { etat: newStatus });
|
||||
console.log(`Chantier ${chantierId} status updated to ${newStatus}`);
|
||||
} catch (err) {
|
||||
console.error("Error", err);
|
||||
|
||||
Reference in New Issue
Block a user