Skip to content
This repository has been archived by the owner on Jun 10, 2023. It is now read-only.

Commit

Permalink
Revert "dlc length가 0이면 에러를 띄우던 문제를 해결"
Browse files Browse the repository at this point in the history
This reverts commit b3e4ebd.
  • Loading branch information
HyeokjinKang committed Jun 10, 2023
1 parent 4c3d09f commit c8934de
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,18 @@ app.get("/store/DLCs", async (req, res) => {
"songs",
"sale"
);
if (!results.length) {
res
.status(400)
.json(
createErrorResponse(
"failed",
"Failed to Load",
"Failed to load DLC data."
)
);
return;
}
res.status(200).json({ result: "success", data: results });
});

Expand Down

0 comments on commit c8934de

Please sign in to comment.