From f682c56fd00fa8914fc3b821dfdc88a201580f0c Mon Sep 17 00:00:00 2001 From: Zamitto <167933696+zamitto@users.noreply.github.com> Date: Sun, 5 Jan 2025 14:11:27 -0300 Subject: [PATCH] feat: use fs already imported --- src/main/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/index.ts b/src/main/index.ts index a2c1c087b..df09cc8c8 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -3,7 +3,7 @@ import updater from "electron-updater"; import i18n from "i18next"; import path from "node:path"; import url from "node:url"; -import fs, { rmSync } from "node:fs"; +import fs from "node:fs"; import { electronApp, optimizer } from "@electron-toolkit/utils"; import { logger, WindowManager } from "@main/services"; import { dataSource } from "@main/data-source"; @@ -72,7 +72,7 @@ const runMigrations = async () => { } catch (err) { logger.log("Migrations failed to run, deleting db and trying again", err); await knexClient.destroy(); - rmSync(databasePath); + fs.rmSync(databasePath); } } };