mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-01-24 05:54:55 +03:00
feat: use fs already imported
This commit is contained in:
parent
097aff1e3d
commit
f682c56fd0
@ -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);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user