fix(syncing-server): remove notifications after adding item to vault (#672)

This commit is contained in:
Karol Sójko
2023-07-25 15:51:42 +02:00
committed by GitHub
parent f8c2f84322
commit 8f88a87c93
9 changed files with 352 additions and 9 deletions
@@ -1,4 +1,4 @@
import { Uuid } from '@standardnotes/domain-core'
import { NotificationType, Uuid } from '@standardnotes/domain-core'
import { Notification } from './Notification'
@@ -6,4 +6,6 @@ export interface NotificationRepositoryInterface {
save(notification: Notification): Promise<void>
findByUserUuidUpdatedAfter(userUuid: Uuid, lastSyncTime: number): Promise<Notification[]>
findByUserUuid(userUuid: Uuid): Promise<Notification[]>
findByUserUuidAndType(userUuid: Uuid, type: NotificationType): Promise<Notification[]>
remove(notification: Notification): Promise<void>
}