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

Commit c8934de

Browse files
author
HyeokjinKang
committed
Revert "dlc length가 0이면 에러를 띄우던 문제를 해결"
This reverts commit b3e4ebd.
1 parent 4c3d09f commit c8934de

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/index.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -859,6 +859,18 @@ app.get("/store/DLCs", async (req, res) => {
859859
"songs",
860860
"sale"
861861
);
862+
if (!results.length) {
863+
res
864+
.status(400)
865+
.json(
866+
createErrorResponse(
867+
"failed",
868+
"Failed to Load",
869+
"Failed to load DLC data."
870+
)
871+
);
872+
return;
873+
}
862874
res.status(200).json({ result: "success", data: results });
863875
});
864876

0 commit comments

Comments
 (0)