aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/Context.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-12-27 17:33:00 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2020-12-27 17:33:00 -0800
commit21e5246ace0f6ecfd00248e5d29fd64a564e03c1 (patch)
treeba9cc6e7a0e5c5a36b65e286aab330d6055dee8b /src/main/java/org/traccar/Context.java
parent9ca9f706524e5ac72d805dcafc21c12ccc109e5e (diff)
downloadtrackermap-server-21e5246ace0f6ecfd00248e5d29fd64a564e03c1.tar.gz
trackermap-server-21e5246ace0f6ecfd00248e5d29fd64a564e03c1.tar.bz2
trackermap-server-21e5246ace0f6ecfd00248e5d29fd64a564e03c1.zip
Migrate more config keys
Diffstat (limited to 'src/main/java/org/traccar/Context.java')
-rw-r--r--src/main/java/org/traccar/Context.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/Context.java b/src/main/java/org/traccar/Context.java
index 2b031cfd3..2fb6998b8 100644
--- a/src/main/java/org/traccar/Context.java
+++ b/src/main/java/org/traccar/Context.java
@@ -23,6 +23,7 @@ import org.eclipse.jetty.util.URIUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.traccar.config.Config;
+import org.traccar.config.Keys;
import org.traccar.database.AttributesManager;
import org.traccar.database.BaseObjectManager;
import org.traccar.database.CalendarManager;
@@ -294,7 +295,7 @@ public final class Context {
client = ClientBuilder.newClient().register(new ObjectMapperContextResolver());
- if (config.hasKey("database.url")) {
+ if (config.hasKey(Keys.DATABASE_URL)) {
dataManager = new DataManager(config);
}