From ede7c30fea32e98051582c04f4420d4dd0da2fd5 Mon Sep 17 00:00:00 2001 From: yoorimChoi Date: Sun, 14 Aug 2022 13:34:16 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20[FIX]=20:=20JSON=20=EB=B0=B0?= =?UTF-8?q?=EC=97=B4=20=ED=8C=8C=EC=8B=B1=20=EC=BD=94=EB=93=9C=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80=20#198?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes/admin/existShopDataPUT.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/admin/existShopDataPUT.js b/src/routes/admin/existShopDataPUT.js index 20ac800..f153b77 100644 --- a/src/routes/admin/existShopDataPUT.js +++ b/src/routes/admin/existShopDataPUT.js @@ -38,7 +38,7 @@ module.exports = async (req, res) => { let allTheme = await themeDB.getAllTheme(client); const newTheme = []; allTheme.forEach((element) => { - if(theme.includes(element.name)){ + if(JSON.parse(theme).includes(element.name)){ newTheme.push(element.id); } }); @@ -62,7 +62,7 @@ module.exports = async (req, res) => { let allCategory = await categoryDB.getAllCategory(client); const newCategory = []; allCategory.forEach((element) => { - if(category.includes(element.name)){ + if(JSON.parse(category).includes(element.name)){ newCategory.push(element.id); } });