But the entry still exists in my strapi dashboard. What am I missing?
This topic has been created from a Discord post (1283136860721254471) to give it more visibility.
It will be on Read-Only mode here. Join the conversation on Discord
For context, I got my project running with next-auth using Prisma and a postgres db and now I’m trying to see if I can use Strapi instead but without changing the rest of my code
Using Credentials and google oauth
One sec imma get you the relevant files
Wait no I re-read the message
What I’m trying to do in this code is, I have a verification token collection type and here I’m trying to delete a specific entry using it’s ID.
I’d love to, but it would have to be tomorrow, I’ve never used it before so I’d have to figure it out first and it’s just easier on PC than on Android via anydesk
And because after compression etc the screenshots are basically near impossible to see, this is the collection type I’m trying to delete an entry of, it accepts an email(required string) a token (required string) and an “expires” value (required datetime)
Basically what I’m trying to do is, I’m checking if there’s an existing verification token for a certain email address, if it does, it should be deleted and a new one should be created.
I am able to find the token using an email address, I get it’s ID, try to delete it (and fail) and then create a new one (which also works)
Definitely will try postman and come back to ya tomorrow but it feels super weird that it’s not deleted after getting a 204
Forgot to mention that I’m using strapi v5 rc in case it helps, rather important info to omitt…
the further i continue with my project, the more I fall onto similar behaviour; Now I got a 200 response on a PUT request to update the info of a User, but the entry is not updated…