From 9cde1ebda80ed802121597421b2286e58fcb4b1d Mon Sep 17 00:00:00 2001 From: Iván Ávalos Date: Mon, 17 Jan 2022 13:48:37 -0600 Subject: Fixed retrieval of geofences for non-admin users --- .../kotlin/mx/trackermap/TrackerMap/controllers/GeofencesController.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shared/src/commonMain/kotlin') diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/GeofencesController.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/GeofencesController.kt index fc336d1..e9b19b6 100644 --- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/GeofencesController.kt +++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/GeofencesController.kt @@ -20,7 +20,7 @@ class GeofencesController( } private suspend fun fetchGeofences() { - val geofences = geofencesApi.geofencesGet(all = true) + val geofences = geofencesApi.geofencesGet() val geofencesMap = mutableMapOf() geofences.forEach { geofencesMap[it.id!!] = it -- cgit v1.2.3