fix: Comment deletion is not propagated correctly
This commit is contained in:
@@ -279,12 +279,20 @@ export type PinEvent = BaseEvent & {
|
||||
collectionId?: string;
|
||||
};
|
||||
|
||||
export type CommentEvent = BaseEvent & {
|
||||
name: "comments.create" | "comments.update" | "comments.delete";
|
||||
modelId: string;
|
||||
documentId: string;
|
||||
actorId: string;
|
||||
};
|
||||
export type CommentEvent =
|
||||
| (BaseEvent & {
|
||||
name: "comments.create" | "comments.update";
|
||||
modelId: string;
|
||||
documentId: string;
|
||||
actorId: string;
|
||||
})
|
||||
| (BaseEvent & {
|
||||
name: "comments.delete";
|
||||
modelId: string;
|
||||
documentId: string;
|
||||
actorId: string;
|
||||
collectionId: string;
|
||||
});
|
||||
|
||||
export type StarEvent = BaseEvent & {
|
||||
name: "stars.create" | "stars.update" | "stars.delete";
|
||||
|
||||
Reference in New Issue
Block a user