aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-07-13 08:05:10 -0700
committerAnton Tananaev <anton@traccar.org>2022-07-13 08:05:10 -0700
commitadbeacc62ecb91c94f6cfe7dea8e79b8f5e1c802 (patch)
tree9bb513c0eebab6804dd6db73c37f7ede47d67356 /src
parent859b9d4aad68f4dafdee60ff14d3c9c0b32693a0 (diff)
downloadtrackermap-server-adbeacc62ecb91c94f6cfe7dea8e79b8f5e1c802.tar.gz
trackermap-server-adbeacc62ecb91c94f6cfe7dea8e79b8f5e1c802.tar.bz2
trackermap-server-adbeacc62ecb91c94f6cfe7dea8e79b8f5e1c802.zip
Fix geofenceIds issue (fix #4890)
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/traccar/model/Device.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/model/Device.java b/src/main/java/org/traccar/model/Device.java
index 6593c59b0..501c7e1c0 100644
--- a/src/main/java/org/traccar/model/Device.java
+++ b/src/main/java/org/traccar/model/Device.java
@@ -17,6 +17,7 @@ package org.traccar.model;
import java.util.Date;
import java.util.List;
+import java.util.stream.Collectors;
import org.traccar.storage.QueryIgnore;
import org.traccar.storage.StorageName;
@@ -89,8 +90,8 @@ public class Device extends GroupedModel {
}
@QueryIgnore
- public void setGeofenceIds(List<Long> geofenceIds) {
- this.geofenceIds = geofenceIds;
+ public void setGeofenceIds(List<? extends Number> geofenceIds) {
+ this.geofenceIds = geofenceIds.stream().map(Number::longValue).collect(Collectors.toList());
}
private String phone;