From e2c2cf416db9637ebd41c489cf5a533824d17d4c Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 1 Nov 2017 12:55:21 +0300 Subject: notifications: fix tokens deletion --- .../java/com/juick/components/service/NotificationsTokenService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'juick-notifications/src') diff --git a/juick-notifications/src/main/java/com/juick/components/service/NotificationsTokenService.java b/juick-notifications/src/main/java/com/juick/components/service/NotificationsTokenService.java index fce52987..6e6c8632 100644 --- a/juick-notifications/src/main/java/com/juick/components/service/NotificationsTokenService.java +++ b/juick-notifications/src/main/java/com/juick/components/service/NotificationsTokenService.java @@ -29,7 +29,7 @@ public class NotificationsTokenService extends BaseRestService implements TokenS public void deleteTokens(String type, List devices) { if (devices.size() > 0) { List list = devices.stream() - .map(d -> new ExternalToken(null, null, type, d)).collect(Collectors.toList()); + .map(d -> new ExternalToken(null, type, d, null)).collect(Collectors.toList()); HttpHeaders headers = new HttpHeaders(); headers.setContentType(MediaType.APPLICATION_JSON_UTF8); getRest().exchange("http://api.juick.com/notifications", -- cgit v1.2.3