aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/handler/events
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-12-14 16:08:25 -0800
committerAnton Tananaev <anton@traccar.org>2022-12-14 16:08:25 -0800
commit3b36ac38a0c4e193ea8085eb5556dffd8205bb17 (patch)
tree45d60d8132bdacac3901282bb8ba09ddb3640c45 /src/main/java/org/traccar/handler/events
parent836dc4138fdcf560a31c6a90769b19f6a0d0e438 (diff)
downloadtrackermap-server-3b36ac38a0c4e193ea8085eb5556dffd8205bb17.tar.gz
trackermap-server-3b36ac38a0c4e193ea8085eb5556dffd8205bb17.tar.bz2
trackermap-server-3b36ac38a0c4e193ea8085eb5556dffd8205bb17.zip
Handle motion fluctuation (fix #5000)
Diffstat (limited to 'src/main/java/org/traccar/handler/events')
-rw-r--r--src/main/java/org/traccar/handler/events/MotionEventHandler.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/handler/events/MotionEventHandler.java b/src/main/java/org/traccar/handler/events/MotionEventHandler.java
index 1b9763c41..c406bd935 100644
--- a/src/main/java/org/traccar/handler/events/MotionEventHandler.java
+++ b/src/main/java/org/traccar/handler/events/MotionEventHandler.java
@@ -75,7 +75,7 @@ public class MotionEventHandler extends BaseEventHandler {
state.toDevice(device);
try {
storage.updateObject(device, new Request(
- new Columns.Include("motionState", "motionTime", "motionDistance"),
+ new Columns.Include("motionStreak", "motionState", "motionTime", "motionDistance"),
new Condition.Equals("id", device.getId())));
} catch (StorageException e) {
LOGGER.warn("Update device motion error", e);