Commit dcc19277 authored by Jiwon Yoon's avatar Jiwon Yoon
Browse files

슬라이스

parent beb80a05
......@@ -75,7 +75,7 @@ function Account() {
}
}
async function getOrdered({ }) {
async function getOrdered() {
try {
const response = await axios.post(`/api/users/addorder`, {
userId: userId
......
......@@ -86,7 +86,8 @@ const recommendPro = async (req, res) => {
// a must be equal to b
return 0;
});
const array = filteredRecommend.map(async (el) => {
const finalrecommend= filteredRecommend.slice(0,4)
const array = finalrecommend.map(async (el) => {
const aa = await Product.findById(el._id)
return aa
})
......
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