From e86b870bd5b4c13e718b44421b56c8aa562a1270 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 18 Nov 2020 10:42:41 -0600 Subject: [PATCH] Fixing mark all as read. Fixes #72 --- src/shared/services/UserService.ts | 2 +- src/shared/services/WebSocketService.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shared/services/UserService.ts b/src/shared/services/UserService.ts index 419490af..72066ad4 100644 --- a/src/shared/services/UserService.ts +++ b/src/shared/services/UserService.ts @@ -49,7 +49,7 @@ export class UserService { } private setClaims(jwt: string) { - this.claims = jwt_decode(jwt) as Claims; + this.claims = jwt_decode(jwt); this.jwtSub.next(jwt); } diff --git a/src/shared/services/WebSocketService.ts b/src/shared/services/WebSocketService.ts index 0baf9b62..53af6d19 100644 --- a/src/shared/services/WebSocketService.ts +++ b/src/shared/services/WebSocketService.ts @@ -348,7 +348,7 @@ export class WebSocketService { } public markAllAsRead() { - let form: MarkAllAsReadForm; + let form: MarkAllAsReadForm = { auth: null }; this.setAuth(form); this.ws.send(this.client.markAllAsRead(form)); }