WD:date time added to the document reference in collection

update_flutter_3.16.0
taha.alam 4 weeks ago
parent 0b89ea91b7
commit 4b06924538

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