From 3e7f598ee8858b201f7c4492e2fb3aa78ba782ea Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 8 May 2022 12:04:48 +0200 Subject: [PATCH] fix: use a new notification service on every poll to make sure it uses a non-expired token --- src/components/notifications/notifications.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/notifications/notifications.vue b/src/components/notifications/notifications.vue index ba3cfc50c..b00fa10fe 100644 --- a/src/components/notifications/notifications.vue +++ b/src/components/notifications/notifications.vue @@ -95,7 +95,9 @@ export default defineComponent({ } }, async loadNotifications() { - this.allNotifications = await this.notificationService.getAll() + // We're recreating the notification service here to make sure it uses the latest api user token + const notificationService = new NotificationService() + this.allNotifications = await notificationService.getAll() }, to(n, index) { const to = {