From f81e4ac5b5d1cdb50ad8b778923548e375a3de48 Mon Sep 17 00:00:00 2001 From: Chubby Granny Chaser Date: Wed, 22 Jan 2025 15:10:38 +0000 Subject: [PATCH] fix: adding catch to tables --- src/main/constants.ts | 2 +- src/main/main.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/constants.ts b/src/main/constants.ts index f9d9c3e2..66bf7af9 100644 --- a/src/main/constants.ts +++ b/src/main/constants.ts @@ -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") diff --git a/src/main/main.ts b/src/main/main.ts index b1f41933..f7ad596d 100644 --- a/src/main/main.ts +++ b/src/main/main.ts @@ -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,