From 7b8e0ff7bd6acbcbe653a3d47ac881a4fdf9f390 Mon Sep 17 00:00:00 2001 From: Sultan khan <> Date: Thu, 26 Sep 2024 09:27:21 +0300 Subject: [PATCH] data type changes --- lib/utils/exception_report.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/utils/exception_report.dart b/lib/utils/exception_report.dart index f49eba7e..141bd071 100644 --- a/lib/utils/exception_report.dart +++ b/lib/utils/exception_report.dart @@ -1,7 +1,7 @@ import 'package:cloud_firestore/cloud_firestore.dart'; void postFailureResponse({ - required String doctorId, + required dynamic doctorId, required String url, required String request, required String response, @@ -14,6 +14,6 @@ void postFailureResponse({ "exception" : exception }; final firestore = FirebaseFirestore.instance; - final collectionRef = firestore.collection(doctorId); + final collectionRef = firestore.collection(doctorId.toString()); await collectionRef.add(data); } \ No newline at end of file