mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-04-27 01:48:20 -05:00
fix: use a new notification service on every poll to make sure it uses a non-expired token
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user