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

Commit 32c87b6

Browse files
author
HyeokjinKang
committed
dlc length가 0이면 에러를 띄우던 문제를 해결
1 parent f2cc339 commit 32c87b6

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

config/allowlist.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[
2+
3+
4+
5+
6+
7+
8+
9+
10+
11+
12+
13+
14+
15+
]

src/index.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -859,18 +859,6 @@ 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-
}
874862
res.status(200).json({ result: "success", data: results });
875863
});
876864

0 commit comments

Comments
 (0)