Skip to content

Commit

Permalink
Merge pull request #263 from boostcampwm2023/hotfix/sky-doesnt-delete
Browse files Browse the repository at this point in the history
[Hotfix] sky 삭제에 대한 코드 수정 사항 반영
  • Loading branch information
JoonSoo-Kim authored Dec 11, 2023
2 parents 3248e48 + 1ffeb9b commit b6e8b27
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions BE/src/purchase/purchase.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,19 +74,14 @@ export class PurchaseService {
await this.purchaseRepository.getDesignPurchaseList(user);

const groundPurchase = [];
const skyPurchase = [];
purchaseList.forEach((purchase) => {
if (purchase.domain === "ground") {
groundPurchase.push(purchase.design);
}
if (purchase.domain === "sky") {
skyPurchase.push(purchase.design);
}
});

const result = {};
result["ground"] = groundPurchase;
result["sky"] = skyPurchase;
return result;
}

Expand Down

0 comments on commit b6e8b27

Please sign in to comment.