Skip to content

Commit

Permalink
๐Ÿ”จ [FIX] : JSON ๋ฐฐ์—ด ํŒŒ์‹ฑ ์ฝ”๋“œ ์ถ”๊ฐ€ #198
Browse files Browse the repository at this point in the history
  • Loading branch information
choiyoorim committed Aug 14, 2022
1 parent 375f550 commit ede7c30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/admin/existShopDataPUT.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
});
Expand All @@ -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);
}
});
Expand Down

0 comments on commit ede7c30

Please sign in to comment.