diff options
author | Anton Tananaev <anton@traccar.org> | 2022-06-07 07:07:25 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-06-07 07:07:25 -0700 |
commit | 65f9e253171dc6805127e5279b97fad05f8c4b9f (patch) | |
tree | fc3968d7c5c5c07118d4e153ece5af31371e90a5 /src/main/java/org/traccar/api | |
parent | 8eecfdcf5c59f92158a6c339d1622e0e9d67968c (diff) | |
download | trackermap-server-65f9e253171dc6805127e5279b97fad05f8c4b9f.tar.gz trackermap-server-65f9e253171dc6805127e5279b97fad05f8c4b9f.tar.bz2 trackermap-server-65f9e253171dc6805127e5279b97fad05f8c4b9f.zip |
Remove async methods
Diffstat (limited to 'src/main/java/org/traccar/api')
-rw-r--r-- | src/main/java/org/traccar/api/resource/NotificationResource.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/api/resource/NotificationResource.java b/src/main/java/org/traccar/api/resource/NotificationResource.java index 2fc103e20..9ea811473 100644 --- a/src/main/java/org/traccar/api/resource/NotificationResource.java +++ b/src/main/java/org/traccar/api/resource/NotificationResource.java @@ -62,7 +62,7 @@ public class NotificationResource extends ExtendedObjectResource<Notification> { User user = permissionsService.getUser(getUserId()); for (Typed method : Context.getNotificatorManager().getAllNotificatorTypes()) { Context.getNotificatorManager() - .getNotificator(method.getType()).sendSync(user, new Event("test", 0), null); + .getNotificator(method.getType()).send(user, new Event("test", 0), null); } return Response.noContent().build(); } @@ -72,7 +72,7 @@ public class NotificationResource extends ExtendedObjectResource<Notification> { public Response testMessage(@PathParam("notificator") String notificator) throws MessageException, InterruptedException, StorageException { User user = permissionsService.getUser(getUserId()); - Context.getNotificatorManager().getNotificator(notificator).sendSync(user, new Event("test", 0), null); + Context.getNotificatorManager().getNotificator(notificator).send(user, new Event("test", 0), null); return Response.noContent().build(); } |