deleteInspectionFromDevice function

Future<void> deleteInspectionFromDevice(
  1. InspectionLocation inspection
)

Implementation

Future<void> deleteInspectionFromDevice(InspectionLocation inspection) async {
  final rootId = await API().rootID;
  await _deleteInspectionLocally(inspection, rootId);
  try {
    await OfflineProvider.otherCollection
        .doc('__sync_maps__${inspection.pjNr}')
        .delete();
  } catch (_) {}
}