Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Nov 8, 2023
1 parent db5f9f5 commit d3f1302
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/socket/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ export const eventHandler = (
break
}

case EventTypes.PAGE_UPDATED: {
case EventTypes.PAGE_UPDATED:
case EventTypes.PAGE_UPDATE: {
const { slug } = data
if (getCurrentPageData()?.slug === slug) {
setCurrentPageData((draft) => {
Expand Down
2 changes: 2 additions & 0 deletions src/types/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ export const enum EventTypes {
NOTE_UPDATE = 'NOTE_UPDATE',
NOTE_DELETE = 'NOTE_DELETE',

// NOTE 历史遗留
PAGE_UPDATED = 'PAGE_UPDATED',
PAGE_UPDATE = 'PAGE_UPDATE',

SAY_CREATE = 'SAY_CREATE',
SAY_DELETE = 'SAY_DELETE',
Expand Down

1 comment on commit d3f1302

@vercel
Copy link

@vercel vercel bot commented on d3f1302 Nov 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

shiro – ./

shiro-innei.vercel.app
innei.in
shiro-git-main-innei.vercel.app
springtide.vercel.app

Please sign in to comment.