aboutsummaryrefslogtreecommitdiff
path: root/juick-notifications/src/main/java/com/juick/components
diff options
context:
space:
mode:
Diffstat (limited to 'juick-notifications/src/main/java/com/juick/components')
-rw-r--r--juick-notifications/src/main/java/com/juick/components/service/NotificationsTokenService.java2
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 fce529871..6e6c86323 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",