mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2025-06-19 16:15:16 +00:00
Create comment updated event
This commit is contained in:
@ -55,6 +55,10 @@ export class CommentsHelper {
|
||||
commentaire: newContent
|
||||
}
|
||||
})
|
||||
|
||||
await EventsHelper.Emit("comment_updated", {
|
||||
commentID: commentID
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -34,6 +34,11 @@ export interface CommentCreatedEvent {
|
||||
comment: Comment
|
||||
}
|
||||
|
||||
// When a comment is updated
|
||||
export interface CommentUpdatedEvent {
|
||||
commentID: number
|
||||
}
|
||||
|
||||
/**
|
||||
* Global map of all possible events
|
||||
*/
|
||||
@ -42,7 +47,8 @@ export interface EventsMap {
|
||||
"updated_number_notifications": UpdatedNotificationsNumberEvent,
|
||||
"updated_number_unread_conversations": UpdateNumberUnreadConversationsEvent,
|
||||
"sent_conversation_message": SentNewConversationMessageEvent,
|
||||
"comment_created": CommentCreatedEvent
|
||||
"comment_created": CommentCreatedEvent,
|
||||
"comment_updated": CommentUpdatedEvent
|
||||
}
|
||||
|
||||
export class EventsHelper {
|
||||
|
Reference in New Issue
Block a user