소스 검색

deep copy API bug fix

master
kj1352 4 년 전
부모
커밋
517a6cc701
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. +4
    -1
      src/user-profile/profile-routes.ts

+ 4
- 1
src/user-profile/profile-routes.ts 파일 보기

@@ -38,7 +38,6 @@ userProfileRoutes.get('/deep-copy/', jwtAuthentication, async (request, response
_id: { $in: user.categories.map(id => new ObjectId(id)) }
}).toArray();


try {
for (let i = 0; i < allCategories.length; i += 1) {
if (allCategories[i].shelves) {
@@ -63,6 +62,10 @@ userProfileRoutes.get('/deep-copy/', jwtAuthentication, async (request, response
...allCategories[i],
shelves,
});
} else {
allDeepCategories.push({
...allCategories[i];
})
}
}
} catch {


불러오는 중...
취소
저장