Skip to content

Commit

Permalink
fix: add support for NOTE_DELETE event in webhook route
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <[email protected]>
  • Loading branch information
Innei committed Dec 28, 2023
1 parent 99dca50 commit e5e56ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/api/webhook/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 36,7 @@ export const POST = async (nextreq: NextRequest) => {
return res.status(200).send('OK')
}
case BusinessEvents.NOTE_CREATE:
case BusinessEvents.NOTE_DELETE:
case BusinessEvents.NOTE_UPDATE: {
revalidateTag('note')
return res.status(200).send('OK')
Expand Down

1 comment on commit e5e56ba

@vercel
Copy link

@vercel vercel bot commented on e5e56ba Dec 28, 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 – ./

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

Please sign in to comment.