Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
shopping-mall
Commits
dcc19277
Commit
dcc19277
authored
Jan 27, 2021
by
Jiwon Yoon
Browse files
슬라이스
parent
beb80a05
Changes
2
Show whitespace changes
Inline
Side-by-side
client/src/Pages/Account.js
View file @
dcc19277
...
...
@@ -75,7 +75,7 @@ function Account() {
}
}
async
function
getOrdered
(
{
}
)
{
async
function
getOrdered
()
{
try
{
const
response
=
await
axios
.
post
(
`/api/users/addorder`
,
{
userId
:
userId
...
...
server/controllers/order.controller.js
View file @
dcc19277
...
...
@@ -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
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment