aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2022-01-17 13:48:37 -0600
committerIván Ávalos <avalos@disroot.org>2022-01-17 13:48:37 -0600
commit9cde1ebda80ed802121597421b2286e58fcb4b1d (patch)
tree345eb72740eb15995685e9ac434f3cacb5f39573
parente4705c337c334b1cd0c0529e91032847c35f4fe3 (diff)
downloadetbsa-trackermap-mobile-9cde1ebda80ed802121597421b2286e58fcb4b1d.tar.gz
etbsa-trackermap-mobile-9cde1ebda80ed802121597421b2286e58fcb4b1d.tar.bz2
etbsa-trackermap-mobile-9cde1ebda80ed802121597421b2286e58fcb4b1d.zip
Fixed retrieval of geofences for non-admin users
-rw-r--r--shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/GeofencesController.kt2
1 files changed, 1 insertions, 1 deletions
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<Int, Geofence>()
geofences.forEach {
geofencesMap[it.id!!] = it