refactor: excel cleanup (#734)

* refactor: remove import of project data from excel
This commit is contained in:
Carlos Valente
2024-01-26 12:55:35 +01:00
committed by GitHub
parent 2df3d376ad
commit c146954a2f
18 changed files with 111 additions and 403 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ import { Low } from 'lowdb';
import { JSONFile } from 'lowdb/node';
import { join } from 'path';
import { getAppDataPath } from '../setup.js';
import { getAppDataPath, isTest } from '../setup.js';
interface Config {
lastLoadedProject: string;
@@ -35,7 +35,7 @@ class ConfigService {
}
async updateDatabaseConfig(filename: string): Promise<void> {
if (process.env.IS_TEST) return;
if (isTest) return;
this.config.data.lastLoadedProject = filename;
await this.config.write();