fix: rewrite migration document and fix check old ids (#504)

* docs: rewrite migration document

* fix: old games check
This commit is contained in:
CosminPerRam 2024-01-22 23:05:52 +02:00 committed by GitHub
parent f46580d1ad
commit b0ca4df687
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 155 additions and 158 deletions

View file

@ -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]
}
})