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
should be consistent when we send a response for client side, moreover why you send a status in the body of response if we have it in status > res.status(200)
here is a question for you all, what if the rowCount equal 0, I mean what if there is no products in data base? In the same context we handle the 4xx errors in catch of promise, not the internal server error, we handle this error in Express error middleware like this ;
shoestore/server/controller/getProductID.js
Line 5 in b9c46b5
should be consistent when we send a response for client side, moreover why you send a status in the body of response if we have it in status
> res.status(200)
here is a question for you all, what if the rowCount equal 0, I mean what if there is no products in data base? In the same context we handle the 4xx errors in catch of promise, not the internal server error, we handle this error in Express error middleware like this ;
you did a good work, all issues just to be a professional developers ;)
The text was updated successfully, but these errors were encountered: