diff options
author | ninioe <ninioe@gmail.com> | 2016-07-21 07:58:28 +0300 |
---|---|---|
committer | ninioe <ninioe@gmail.com> | 2016-07-21 07:58:28 +0300 |
commit | 2e7987b5df7611299aa76bcc9eca3424ce31d204 (patch) | |
tree | c7314d97562365d2cf1fa67f707ee0a250aa3b42 /src/org | |
parent | 19d51272931f92c5c8a139e8aa8f9aa0314f6c61 (diff) | |
download | trackermap-server-2e7987b5df7611299aa76bcc9eca3424ce31d204.tar.gz trackermap-server-2e7987b5df7611299aa76bcc9eca3424ce31d204.tar.bz2 trackermap-server-2e7987b5df7611299aa76bcc9eca3424ce31d204.zip |
protect Device positionId on clear history
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/traccar/database/DataManager.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/org/traccar/database/DataManager.java b/src/org/traccar/database/DataManager.java index 691c31643..710eceebb 100644 --- a/src/org/traccar/database/DataManager.java +++ b/src/org/traccar/database/DataManager.java @@ -416,6 +416,7 @@ public class DataManager { Date dateBefore = new Date(lastUpdate.getTime() - histDays * 24 * 3600 * 1000); QueryBuilder.create(dataSource, sql) + .setLong("positionId", device.getPositionId()) .setLong("deviceId", device.getId()) .setDate("serverTime", dateBefore) .executeUpdate(); |