From c8934de978cbdf6698e44c435c4d8625c95b15cf Mon Sep 17 00:00:00 2001 From: HyeokjinKang Date: Sat, 10 Jun 2023 14:56:17 +0900 Subject: [PATCH] =?UTF-8?q?Revert=20"dlc=20length=EA=B0=80=200=EC=9D=B4?= =?UTF-8?q?=EB=A9=B4=20=EC=97=90=EB=9F=AC=EB=A5=BC=20=EB=9D=84=EC=9A=B0?= =?UTF-8?q?=EB=8D=98=20=EB=AC=B8=EC=A0=9C=EB=A5=BC=20=ED=95=B4=EA=B2=B0"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit b3e4ebd4faa8300ff7a90f80ad85e42a1f023215. --- src/index.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/index.ts b/src/index.ts index 50007f3c..d231469b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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 }); });