From 4b06924538bec46a8074d185b7e9237d0dc98d2e Mon Sep 17 00:00:00 2001 From: "taha.alam" Date: Thu, 26 Sep 2024 09:16:20 +0300 Subject: [PATCH] WD:date time added to the document reference in collection --- lib/utils/exception_report.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/exception_report.dart b/lib/utils/exception_report.dart index f49eba7e..1982f94d 100644 --- a/lib/utils/exception_report.dart +++ b/lib/utils/exception_report.dart @@ -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); } \ No newline at end of file