aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/database
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-01-15 08:20:34 -0800
committerAnton Tananaev <anton@traccar.org>2024-01-15 08:20:34 -0800
commit079eaa6ed49813f4050076ac45849f6e4334e45b (patch)
tree8c0ba28d8f85f467545b170a3dca5a793b0e84f4 /src/main/java/org/traccar/database
parentba1e70e50f6310ec9f331a7e585f004ca4e17298 (diff)
downloadtrackermap-server-079eaa6ed49813f4050076ac45849f6e4334e45b.tar.gz
trackermap-server-079eaa6ed49813f4050076ac45849f6e4334e45b.tar.bz2
trackermap-server-079eaa6ed49813f4050076ac45849f6e4334e45b.zip
Fix duplicate notifications (fix #5245)
Diffstat (limited to 'src/main/java/org/traccar/database')
-rw-r--r--src/main/java/org/traccar/database/NotificationManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/database/NotificationManager.java b/src/main/java/org/traccar/database/NotificationManager.java
index 45263ff3c..65437f0a1 100644
--- a/src/main/java/org/traccar/database/NotificationManager.java
+++ b/src/main/java/org/traccar/database/NotificationManager.java
@@ -87,7 +87,7 @@ public class NotificationManager {
return;
}
- var notifications = cacheManager.getDeviceNotifications(event.getDeviceId())
+ var notifications = cacheManager.getDeviceNotifications(event.getDeviceId()).stream()
.filter(notification -> notification.getType().equals(event.getType()))
.filter(notification -> {
if (event.getType().equals(Event.TYPE_ALARM)) {