From 663308233509aa9736889b9140daf109afa43de1 Mon Sep 17 00:00:00 2001 From: fullex <0xfullex@gmail.com> Date: Thu, 25 Dec 2025 08:43:27 +0800 Subject: [PATCH] fix: format --- src/main/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/index.ts b/src/main/index.ts index ecbe17a5ba..3d5edc3946 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -135,22 +135,22 @@ if (!app.requestSingleInstanceLock()) { // initialization and is ready to create browser windows. // Some APIs can only be used after this event occurs. app.whenReady().then(async () => { - //TODO v2 Data Refactor: App Lifecycle Management // This is the temporary solution for the data migration v2. // We will refactor the app lifecycle management after the data migration v2 is stable. // First of all, init & migrate the database try { - await dbService.init() await dbService.migrateDb() await dbService.migrateSeed('preference') - } catch (error) { logger.error('Failed to initialize database', error as Error) //TODO for v2 testing only: - await dialog.showErrorBox('Database Initialization Failed', 'Before the official release of the alpha version, the database structure may change at any time. To maintain simplicity, the database migration files will be periodically reinitialized, which may cause the application to fail. If this occurs, please delete the cherrystudio.sqlite file located in the user data directory.') + await dialog.showErrorBox( + 'Database Initialization Failed', + 'Before the official release of the alpha version, the database structure may change at any time. To maintain simplicity, the database migration files will be periodically reinitialized, which may cause the application to fail. If this occurs, please delete the cherrystudio.sqlite file located in the user data directory.' + ) app.quit() return }