Skip to content

Commit feb810a

Browse files
committed
await 변경
1 parent d90381f commit feb810a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

models/gamesDB.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ async function saveGameListIGDBToDB(attribute, condition='', sort='',
179179
})
180180
.then(response => {
181181
const resultData = response.data;
182-
resultData.forEach((i,index)=>{
183-
createGameSample(i)
182+
resultData.forEach(async (i,index)=>{
183+
await createGameSample(i)
184184
// const gameGameInstance = new gameGameList(i);
185185
// //category, status 영문표기로 변경
186186
// gameGameInstance.category = gameCategory[i.category]

0 commit comments

Comments
 (0)