Compare commits

..

No commits in common. 'e8fb4d09b6a1cdcdf484e8d10abad89ad8d55d66' and '0a073516287aa1fd2ae6f40c502681a09564f064' have entirely different histories.

@ -58,7 +58,7 @@ class InterventionHistoryBottomSheet extends StatelessWidget {
model.updateInterventionDiseaseStatus(
isAccepted: true,
interventionID: interventionList[index].interventionId.toString(),
successMessage: TranslationBase.of(context).interventionAcceptedSuccessfully,
successMessage: TranslationBase.of(context).interventionRejectedSuccessfully,
errorMessage: TranslationBase.of(context).unableToPerformTheAction
);
Navigator.pop(context);
@ -66,7 +66,7 @@ class InterventionHistoryBottomSheet extends StatelessWidget {
onRejectClick: (intervention) {
model.updateInterventionDiseaseStatus(
interventionID: interventionList[index].interventionId.toString(),
successMessage: TranslationBase.of(context).interventionRejectedSuccessfully,
successMessage: TranslationBase.of(context).interventionAcceptedSuccessfully,
errorMessage: TranslationBase.of(context).unableToPerformTheAction
);
Navigator.pop(context);

@ -37,6 +37,7 @@ void postFailureResponse({
// await collectionRef.doc(DateTime.now().toIso8601String()).set(data);
}
void postRequestAndResponse({
required dynamic doctorId,
required String completeUrl,
@ -45,10 +46,9 @@ void postRequestAndResponse({
required String response,
required String statusCode,
}) async {
if (!monitoredEndpoints.contains(urlSuffix)) {
if(!monitoredEndpoints.contains(urlSuffix)) {
return;
}
// print(" the url is being logged ");
// Map<String, String> data = {
// "url" : completeUrl,
@ -59,23 +59,8 @@ void postRequestAndResponse({
// final firestore = FirebaseFirestore.instance;
// // Sanitize urlSuffix to be Firestore-safe
// final safeSuffix = urlSuffix.replaceAll(RegExp(r'[^a-zA-Z0-9_-]'), '_');
print(" the url is being logged ");
Map<String, String> data = {
"url": completeUrl,
"request": request,
"response": response,
"statusCode": statusCode,
};
// final firestore = FirebaseFirestore.instance;
// Sanitize urlSuffix to be Firestore-safe
final safeSuffix = urlSuffix.replaceAll(RegExp(r'[^a-zA-Z0-9_-]'), '_');
// final collectionRef = firestore.collection('doctors')
// .doc(doctorId.toString())
// .collection(safeSuffix);
// await collectionRef.doc(DateTime.now().toIso8601String()).set(data);
}
}
Loading…
Cancel
Save