IsAmitprajapati / Full-Stack-E-Commerce-MERN-APP

Full Stack E-Commerce MERN APP
https://payment-order-full-stack-ecommerce-hn9z.vercel.app/
189 stars 134 forks source link

backend bug #1

Closed Asem-Assi closed 3 months ago

Asem-Assi commented 5 months ago

thanks man, i think there is a bug in addToCart controller in the check the availability of product it must be like this: const isProductAvailable = await addToCartModel.findOne({ productId, userId: currentUser });

insted of: const isProductAvailable = await addToCartModel.findOne({ productId});

IsAmitprajapati commented 5 months ago

yes bro, In next video i will solve this

JatinAhirwar commented 4 months ago

Thank u brother for figure it out I will also take a look at this