WD:date time added to the document reference in collection

update_flutter_3.24_pharmacy_ntervention
taha.alam 1 year ago
parent 0b89ea91b7
commit 4b06924538

@ -15,5 +15,5 @@ void postFailureResponse({
}; };
final firestore = FirebaseFirestore.instance; final firestore = FirebaseFirestore.instance;
final collectionRef = firestore.collection(doctorId); final collectionRef = firestore.collection(doctorId);
await collectionRef.add(data); await collectionRef.doc(DateTime.now().toIso8601String()).set(data);
} }
Loading…
Cancel
Save