fix: enum uppercase

Signed-off-by: Innei <i@innei.in>
This commit is contained in:
Innei
2023-06-23 23:14:33 +08:00
parent 7eea2e34d3
commit 33539aa696
2 changed files with 2 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ export enum BusinessEvents {
DANMAKU_CREATE = 'DANMAKU_CREATE',
RECENTLY_CREATE = 'RECENTLY_CREATE',
RECENTLY_DElETE = 'RECENTLY_DElETE',
RECENTLY_DELETE = 'RECENTLY_DELETE',
// util
CONTENT_REFRESH = 'CONTENT_REFRESH', // 内容更新或重置 页面需要重载

View File

@@ -258,7 +258,7 @@ export class RecentlyService {
const isDeleted = deletedCount === 1
scheduleManager.schedule(async () => {
if (isDeleted) {
await this.eventManager.broadcast(BusinessEvents.RECENTLY_DElETE, id, {
await this.eventManager.broadcast(BusinessEvents.RECENTLY_DELETE, id, {
scope: EventScope.TO_SYSTEM_VISITOR,
})
}