adrianhajdin / project_next_14_ai_prompt_sharing

Next.js recently became the official React framework as outlined in React docs. In this course, you'll learn the most important Next.js concepts and how they fit into the React ecosystem. Finally, you'll put your skills to the test by building a modern full-stack Next 14 application.
https://www.jsmastery.pro/ultimate-next-course
2.9k stars 428 forks source link

Update route.js #88

Open s2ahil opened 10 months ago

s2ahil commented 10 months ago

await Prompt.findByIdAndDelete(params.id); is the correct code for deleting the prompt otherwise using remove will not delete prompt.

vercel[bot] commented 10 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
project-promptopia-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 10, 2024 4:41pm
vercel[bot] commented 10 months ago

@s2ahil is attempting to deploy a commit to the JS Mastery Pro Team on Vercel.

A member of the Team first needs to authorize it.