Commit 8114b2f0 authored by Jiwon Yoon's avatar Jiwon Yoon
Browse files

마이페이지

parent 169d16f9
...@@ -84,7 +84,7 @@ const addorder = async (req, res) => { ...@@ -84,7 +84,7 @@ const addorder = async (req, res) => {
const order = await Order.find({ userId: userId }).populate({ const order = await Order.find({ userId: userId }).populate({
path: 'products.productId', path: 'products.productId',
model: 'Product' model: 'Product'
}) }).sort({createdAt:-1})
res.status(200).json(order) res.status(200).json(order)
} catch (error) { } catch (error) {
console.log(error) console.log(error)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment