Skip to content

Commit

Permalink
feat: use fs already imported
Browse files Browse the repository at this point in the history
  • Loading branch information
zamitto committed Jan 5, 2025
1 parent 097aff1 commit f682c56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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);
}
}
};
Expand Down

0 comments on commit f682c56

Please sign in to comment.