diff options
author | Vitaly Takmazov | 2017-11-01 12:55:21 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2017-11-01 12:55:21 +0300 |
commit | e2c2cf416db9637ebd41c489cf5a533824d17d4c (patch) | |
tree | 6f421d432b54a1a694af946438a5e6e4c1c53af5 /juick-notifications | |
parent | 0dcabe039a51a3a1aebd9a656a8dde2895b5e03a (diff) |
notifications: fix tokens deletion
Diffstat (limited to 'juick-notifications')
-rw-r--r-- | juick-notifications/src/main/java/com/juick/components/service/NotificationsTokenService.java | 2 |
1 files changed, 1 insertions, 1 deletions
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<String> devices) { if (devices.size() > 0) { List<ExternalToken> 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", |