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