joschan21 / breadit

Modern Fullstack Reddit Clone in Next.js 13 & TypeScript
1.06k stars 261 forks source link

error in getData props of serverVoteComponent #13

Closed HarshKanjiya closed 1 year ago

HarshKanjiya commented 1 year ago

hi josh, im following your wonderful tutorial, and i was stuck on a problem in postServerVote component. to be exact in prop of passing getData function as a prop in the component,

error message was: Argument where of type PostWhereUniqueInput needs at least one argument. Available args are listed in green.

i found its solution on Stack overflow saying make it findFirst instead of findunique, and it worked!!! please check this prob, is it only with me or with everyone

Thank you for your Teaching

joschan21 commented 1 year ago

Thanks for posting! Didn't have this issue at all, but appreciate the fix for anyone that should encounter the same thing. Closing the issue now