basir / mern-amazona

Build Ecommerce Like Amazon By MERN Stack
https://www.youtube.com/watch?v=ZjwBs3n7waY&list=PLeh2GWv22bmSQ9oBSYTd469_AQjPGpzyv
329 stars 251 forks source link

Delete products,users,orders doesn't work(Solved-by putting .deleteOne() instead of .remove() #17

Closed ITZU-MYK-OFFICIAL closed 1 year ago

ITZU-MYK-OFFICIAL commented 1 year ago

I need to delete them manually from db When I try to delete a product for ex,I click,browser is reloading and nothing,the product haven't been deleted

ITZU-MYK-OFFICIAL commented 1 year ago

Solved by removing .remove() from products,users and orders with .deleteOne()