aboutsummaryrefslogtreecommitdiff
path: root/shared
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
commit63217c9b730dd044477da65ceeb8b2551e064577 (patch)
tree345eb72740eb15995685e9ac434f3cacb5f39573 /shared
parent273693e46d8b2945f5e3020f35c960728b22b1ed (diff)
downloadetbsa-trackermap-mobile-63217c9b730dd044477da65ceeb8b2551e064577.tar.gz
etbsa-trackermap-mobile-63217c9b730dd044477da65ceeb8b2551e064577.tar.bz2
etbsa-trackermap-mobile-63217c9b730dd044477da65ceeb8b2551e064577.zip
Fixed retrieval of geofences for non-admin users
Diffstat (limited to 'shared')
-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