feat: edit comment

Signed-off-by: Innei <i@innei.in>
This commit is contained in:
Innei
2024-09-17 13:55:35 +08:00
parent a0e37aa417
commit ed7b33e3a9
5 changed files with 52 additions and 1 deletions

View File

@@ -48,6 +48,12 @@ export interface EventPayloadMapping {
[BusinessEvents.COMMENT_CREATE]: Omit<CommentModel, 'ref'> & {
ref: Id | PostModel | PageModel | NoteModel | RecentlyModel
}
[BusinessEvents.COMMENT_UPDATE]: {
id: string
text: string
}
[BusinessEvents.ARTICLE_READ_COUNT_UPDATE]: {
count: number
type: 'post' | 'note'