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 419490a..72066ad 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 0baf9b6..53af6d1 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)); } -- 2.44.1