You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you installed Mongoose v8.0.0, you'll hit an error on prompt deletion.
The problem is that in Mongoose v8.0.0, the "findByIdAndRemove" query is replaced with "findByIdAndDelete".
you can check the version of Mongoose and if you were using this version, just replace it as I said in the "app/api/prompt/[id]/route.js" file.
The text was updated successfully, but these errors were encountered:
If you installed Mongoose v8.0.0, you'll hit an error on prompt deletion.
The problem is that in Mongoose v8.0.0, the "findByIdAndRemove" query is replaced with "findByIdAndDelete".
you can check the version of Mongoose and if you were using this version, just replace it as I said in the "app/api/prompt/[id]/route.js" file.
The text was updated successfully, but these errors were encountered: