error with this prisma delete request?

I'm not sure what the issue is with this attempt to delete a db entry.
No description
No description
No description
No description
6 Replies
Christoph
Christoph16mo ago
You used findMany. So an array is returned. storedToken is an array And an array doesn't have a property "id"
Ryan
RyanOP16mo ago
ahhh thanks how about this one
Ryan
RyanOP16mo ago
No description
Ryan
RyanOP16mo ago
No description
Christoph
Christoph16mo ago
As it says, "expires" is not optional and therefore missing
Ryan
RyanOP16mo ago
thanks
Want results from more Discord servers?
Add your server