mirror of
https://github.com/tribufu/node-gamedig
synced 2026-05-06 15:17:36 +00:00
fix: rewrite migration document and fix check old ids (#504)
* docs: rewrite migration document * fix: old games check
This commit is contained in:
parent
f46580d1ad
commit
b0ca4df687
5 changed files with 155 additions and 158 deletions
|
|
@ -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]
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue