Getting a null value for the error.message when trying to DELETE a record
I have a switch case and the GET works without an issue, but the DELETE and PATCH are not deleting or updating the row.
You can see what I've got in the code below - I have RLS turned off and can't seem to identify what's stopping the record from being deleted or updated 🤨
4 Replies
Did some further digging and I'm getting null from both the data and the error 🤷🏻♂️
Well delete and update will not return data if you are on v2. Update requires a .select() to return data. That does not explain your data not changing or being deleted in the database if your jokeID is correct and you have RLS off on the table. Any errors in the Postgres logs under database tab in the dashboard?
Thanks for that - I ran the DELETE and it returned the following:
I don't get a postgres log entry for the PATCH call. I have attached a screenshot below from what's returned on the PATCH call

Is there anything in particular that I should be looking for?