fix: workaround for using currentUser in server actions
This commit is contained in:
parent
c0011ed15f
commit
8156e62256
5 changed files with 11 additions and 34 deletions
|
|
@ -56,5 +56,5 @@ export async function removeChat({ id, path }: { id: string; path: string }) {
|
|||
await kv.zrem(`user:chat:${user.id}`, `chat:${id}`)
|
||||
|
||||
revalidatePath('/')
|
||||
revalidatePath('/chat/[id]')
|
||||
revalidatePath(path)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue