From 1a4dbe41223f253d649fba8b506b70c7a447a1ff Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 17 Jun 2015 19:54:33 +1200 Subject: Apply custom marker style --- src/org/traccar/database/DataManager.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/org/traccar/database/DataManager.java b/src/org/traccar/database/DataManager.java index 807a75f34..2b5373197 100644 --- a/src/org/traccar/database/DataManager.java +++ b/src/org/traccar/database/DataManager.java @@ -34,7 +34,6 @@ import javax.naming.InitialContext; import javax.sql.DataSource; import org.traccar.Context; import org.traccar.helper.DriverDelegate; -import org.traccar.helper.Hashing; import org.traccar.helper.Log; import org.traccar.http.JsonConverter; import org.traccar.model.Device; @@ -200,6 +199,10 @@ public class DataManager { position.setLatitude(-36.8932371); position.setLongitude(174.7743053); addPosition(position); + + QueryBuilder.create(dataSource, properties.getProperty("database.updateLatestPosition")) + .setObject(position) + .executeUpdate(); } catch (SQLException error) { Log.warning(error); -- cgit v1.2.3