diff --git a/plugins/notification-resources/src/inboxNotificationsClient.ts b/plugins/notification-resources/src/inboxNotificationsClient.ts index ecf89e9406..8f41bfbb31 100644 --- a/plugins/notification-resources/src/inboxNotificationsClient.ts +++ b/plugins/notification-resources/src/inboxNotificationsClient.ts @@ -167,6 +167,7 @@ export class InboxNotificationsClientImpl implements InboxNotificationsClient { await op.updateDoc(notification._class, notification.space, notification._id, { isViewed: true }) } await op.update(docNotifyContext, { lastViewedTimestamp: Date.now() }) + await op.commit() } async forceReadDoc (_id: Ref, _class: Ref>): Promise {