Manqo
PPrisma
•Created by Manqo on 10/9/2024 in #help-and-questions
I’m trying to fix an error I’m encountering in my Prisma code: This expression is not callable.
Actually the code i provided does not work correctly with the sortOrder, but this one works:
But as u can this implementation is not so clean.
But anyway i get still the same problem, i dont know what type i should put to the any.
So what type i should put here instead of any?
3 replies
PPrisma
•Created by Manqo on 9/25/2024 in #help-and-questions
Deleting User Account and All Related Data
Yeah i think i got The code working. The problem was with The nextauth, it tried to signout The user after The deletion.
11 replies
PPrisma
•Created by Manqo on 9/25/2024 in #help-and-questions
Deleting User Account and All Related Data
Okey so basically it should be enought that i call
11 replies
PPrisma
•Created by Manqo on 9/25/2024 in #help-and-questions
Deleting User Account and All Related Data
Thanks, so basically i sohuld be adding onDelete:cascade to all models that are related to user?
11 replies
PPrisma
•Created by Manqo on 9/25/2024 in #help-and-questions
Deleting User Account and All Related Data
What should I do to get rid of this error? The deletion actually works, and it redirects the user to the main page afterward, but having an error like this doesn't seem right.
The problem is that I'm getting an error that says:
Here is part of my prisma schema.
11 replies