Commit 764c352c authored by Kim, Subin's avatar Kim, Subin
Browse files

Merge remote-tracking branch 'origin/jiwon' into ourMaster

parents cfcaaab5 2e020222
......@@ -7,12 +7,5 @@ const config = {
cookieMaxAge: 60 * 60 * 24 * 7 * 1000
}
// const config = {
// port: 3001,
// kakaoAdminKey: 'b2dda7685c5b2990684d813e362cff07',
// }
export default config
\ No newline at end of file
export default config
// export default config
\ No newline at end of file
......@@ -60,7 +60,7 @@ const recommendPro = async (req, res) => {
'products.productId': mongoose.Types.ObjectId(productId)
}
},
{ "$unwind": "$products" },
{ $unwind: "$products" },
{
$group: {
_id: "$products.productId",
......
......@@ -84,7 +84,7 @@ const addorder = async (req, res) => {
const order = await Order.find({ userId: userId }).populate({
path: 'products.productId',
model: 'Product'
})
}).sort({createdAt:-1})
res.status(200).json(order)
} catch (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