fix: workaround for using currentUser in server actions

This commit is contained in:
shadcn 2023-06-14 16:39:55 +04:00
parent c0011ed15f
commit 8156e62256
5 changed files with 11 additions and 34 deletions

View file

@ -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)
}