diff --git a/lib/game-resolver.js b/lib/game-resolver.js index d875c99..f04ba52 100644 --- a/lib/game-resolver.js +++ b/lib/game-resolver.js @@ -12,10 +12,10 @@ export const lookup = (options) => { } let game = games[type] - + if (options.checkOldIDs) { Object.keys(games).forEach((id) => { - if (games[id]?.extra.old_id) { + if (games[id]?.extra?.old_id === type) { game = games[id] } })