mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-01-23 13:34:54 +03:00
fix: adding catch to tables
This commit is contained in:
parent
a839e5166b
commit
f81e4ac5b5
@ -18,7 +18,7 @@ export const databasePath = path.join(
|
|||||||
isStaging ? "hydra_test.db" : "hydra.db"
|
isStaging ? "hydra_test.db" : "hydra.db"
|
||||||
);
|
);
|
||||||
|
|
||||||
export const logsPath = path.join(app.getPath("userData"), "hydra", "logs");
|
export const logsPath = path.join(app.getPath("userData"), "logs");
|
||||||
|
|
||||||
export const seedsPath = app.isPackaged
|
export const seedsPath = app.isPackaged
|
||||||
? path.join(process.resourcesPath, "seeds")
|
? path.join(process.resourcesPath, "seeds")
|
||||||
|
@ -86,6 +86,9 @@ const migrateFromSqlite = async () => {
|
|||||||
playTimeInMilliseconds: game.playTimeInMilliseconds,
|
playTimeInMilliseconds: game.playTimeInMilliseconds,
|
||||||
lastTimePlayed: game.lastTimePlayed,
|
lastTimePlayed: game.lastTimePlayed,
|
||||||
remoteId: game.remoteId,
|
remoteId: game.remoteId,
|
||||||
|
winePrefixPath: game.winePrefixPath,
|
||||||
|
launchOptions: game.launchOptions,
|
||||||
|
executablePath: game.executablePath,
|
||||||
isDeleted: game.isDeleted === 1,
|
isDeleted: game.isDeleted === 1,
|
||||||
},
|
},
|
||||||
}))
|
}))
|
||||||
@ -182,7 +185,7 @@ const migrateFromSqlite = async () => {
|
|||||||
logger.info("User data migrated successfully");
|
logger.info("User data migrated successfully");
|
||||||
});
|
});
|
||||||
|
|
||||||
return Promise.all([
|
return Promise.allSettled([
|
||||||
migrateGames,
|
migrateGames,
|
||||||
migrateUserPreferences,
|
migrateUserPreferences,
|
||||||
migrateAchievements,
|
migrateAchievements,
|
||||||
|
Loading…
Reference in New Issue
Block a user