Add missing commit (#7097)

This commit is contained in:
Kristina 2024-11-04 18:32:18 +04:00 committed by GitHub
parent 0647206938
commit b063e98965
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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<Doc>, _class: Ref<Class<Doc>>): Promise<void> {