Skip to content

Commit 93a4f23

Browse files
committed
fix: remove revalidateTag
Signed-off-by: Innei <[email protected]>
1 parent a4143ff commit 93a4f23

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

src/app/api/webhook/route.ts

-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { revalidateTag } from 'next/cache'
21
import type { RequestWithJSONBody } from '@mx-space/webhook'
32
import type { NextRequest } from 'next/server'
43

@@ -38,7 +37,6 @@ export const POST = async (nextreq: NextRequest) => {
3837
case BusinessEvents.NOTE_CREATE:
3938
case BusinessEvents.NOTE_DELETE:
4039
case BusinessEvents.NOTE_UPDATE: {
41-
revalidateTag('note')
4240
return res.status(200).send('OK')
4341
}
4442
}

src/queries/definition/note.ts

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { useMutation } from '@tanstack/react-query'
22
import dayjs from 'dayjs'
3-
import { revalidateTag } from 'next/cache'
43
import type { NoteModel, NoteWrappedPayload } from '@mx-space/api-client'
54
import type { NoteDto } from '~/models/writing'
65

@@ -95,7 +94,6 @@ export const useCreateNote = () => {
9594
})
9695
},
9796
onSuccess: () => {
98-
revalidateTag('note')
9997
toast.success('创建成功')
10098
resetAutoSaver('note')
10199
},

0 commit comments

Comments
 (0)