feat: ws type read cunt

Signed-off-by: Innei <i@innei.in>
This commit is contained in:
Innei
2024-03-18 21:59:28 +08:00
parent c33d861eaa
commit 310480f7b4
5 changed files with 26 additions and 3 deletions

View File

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