fix: adding catch to tables

This commit is contained in:
Chubby Granny Chaser 2025-01-22 15:10:38 +00:00
parent a839e5166b
commit f81e4ac5b5
No known key found for this signature in database
2 changed files with 5 additions and 2 deletions

View File

@ -18,7 +18,7 @@ export const databasePath = path.join(
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
? path.join(process.resourcesPath, "seeds")

View File

@ -86,6 +86,9 @@ const migrateFromSqlite = async () => {
playTimeInMilliseconds: game.playTimeInMilliseconds,
lastTimePlayed: game.lastTimePlayed,
remoteId: game.remoteId,
winePrefixPath: game.winePrefixPath,
launchOptions: game.launchOptions,
executablePath: game.executablePath,
isDeleted: game.isDeleted === 1,
},
}))
@ -182,7 +185,7 @@ const migrateFromSqlite = async () => {
logger.info("User data migrated successfully");
});
return Promise.all([
return Promise.allSettled([
migrateGames,
migrateUserPreferences,
migrateAchievements,