stack_overflow_nextjs14 icon indicating copy to clipboard operation
stack_overflow_nextjs14 copied to clipboard

why we delete the user again here?

Open loudywen opened this issue 1 year ago • 0 comments

https://github.com/adrianhajdin/stack_overflow_nextjs14/blob/8ae67d5e0d5e54a839c6a6fb646e8cc71e23f231/lib/actions/user.action.ts#L82

we already have const user = await User.findOneAndDelete({ clerkId });

loudywen avatar Jan 05 '24 18:01 loudywen