diff options
author | Anton Tananaev <anton@traccar.org> | 2022-06-07 16:38:58 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-06-07 16:38:58 -0700 |
commit | b745e3804950fefd24b38937c90c4d5c61219321 (patch) | |
tree | f362ea259e557cc6ffd778fde6b15e59be46d068 /src/main/java/org/traccar/notification | |
parent | 32b39cffc6dd705e9aacbe5b8d68bc37106997d2 (diff) | |
download | trackermap-server-b745e3804950fefd24b38937c90c4d5c61219321.tar.gz trackermap-server-b745e3804950fefd24b38937c90c4d5c61219321.tar.bz2 trackermap-server-b745e3804950fefd24b38937c90c4d5c61219321.zip |
Remove drivers manager
Diffstat (limited to 'src/main/java/org/traccar/notification')
-rw-r--r-- | src/main/java/org/traccar/notification/NotificationFormatter.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/notification/NotificationFormatter.java b/src/main/java/org/traccar/notification/NotificationFormatter.java index c3e37c9e9..be90761b1 100644 --- a/src/main/java/org/traccar/notification/NotificationFormatter.java +++ b/src/main/java/org/traccar/notification/NotificationFormatter.java @@ -17,7 +17,6 @@ package org.traccar.notification; import org.apache.velocity.VelocityContext; -import org.traccar.Context; import org.traccar.model.Device; import org.traccar.model.Event; import org.traccar.model.Geofence; @@ -55,7 +54,7 @@ public final class NotificationFormatter { } String driverUniqueId = event.getString(Position.KEY_DRIVER_UNIQUE_ID); if (driverUniqueId != null) { - velocityContext.put("driver", Context.getDriversManager().getDriverByUniqueId(driverUniqueId)); + velocityContext.put("driver", cacheManager.findDriverByUniqueId(device.getId(), driverUniqueId)); } return TextTemplateFormatter.formatMessage(velocityContext, event.getType(), templatePath); |