I am having a bit a database issue. I am making a music review website and I have successfully been able to create and update reviews as a dummy user, but no matter what I try I am unable to delete them. The way I have my database set up is that I have two separate tables: profiles and reviews. everything in the profiles table works when it comes to create/update/delete, but for some reason not in the reviews table. the corresponding userID does populate with their review in the reviews table as well. I have even tried playing around with permissions and even if I set the role to Any, it won't work. Has anyone else encountered this issue?
here's my delete funtion: async function deleteReview(id){ try { await dbDeleteReview(id); await renderReviews(); } catch (error) { console.error('Delete review error:', error); alert('Failed to delete review: ' + error.message); } }
Recommended threads
- [CLOSED] "Connect your platform" still i...
The "Get started ...66% complete" in the control panel irks me. I click it and it shows "Connect your platform - Web in progress". I am using Next JS but I di...
- 500 error when trying to add a domain na...
Just went to Sites --> "Add your first custom domain" and got the 500 error. Same if I go Sites --> (select site) --> "Domains" tab --> "Add domain" --> 500 e...
- I can't access projects in console
Hi all, I have setup a custom domain for my project. It's edge.kilimocare.com but shows 500 Internal server error. **When does it occur?** 1. Put edge.kilimo...