Remove collection fetch on document delete

This commit is contained in:
Tom Moor
2022-08-25 10:43:05 +02:00
parent 60309975e0
commit d2aea687f3
6 changed files with 53 additions and 22 deletions

View File

@@ -188,6 +188,11 @@ export type WebsocketEntityDeletedEvent = {
modelId: string;
};
export type WebsocketDocumentDeletedEvent = WebsocketEntityDeletedEvent & {
modelId: string;
collectionId: string;
};
export type WebsocketEntitiesEvent = {
documentIds: { id: string; updatedAt?: string }[];
collectionIds: { id: string; updatedAt?: string }[];