diff --git a/desktop/src/main/services/store.ts b/desktop/src/main/services/store.ts index a484080f5..f5c6274ba 100644 --- a/desktop/src/main/services/store.ts +++ b/desktop/src/main/services/store.ts @@ -2,7 +2,7 @@ import { safeStorage } from "electron/main"; import { keysStore } from "../stores/keys.store"; import { safeStorageStore } from "../stores/safeStorage.store"; import { uploadStatusStore } from "../stores/upload.store"; -import { watchStore } from "../stores/watch.store"; +import { watchStore } from "../stores/watch"; export const clearStores = () => { uploadStatusStore.clear(); diff --git a/desktop/src/main/services/watch.ts b/desktop/src/main/services/watch.ts index 53b50e31b..4da5b45f9 100644 --- a/desktop/src/main/services/watch.ts +++ b/desktop/src/main/services/watch.ts @@ -3,7 +3,7 @@ import ElectronLog from "electron-log"; import fs from "node:fs/promises"; import path from "node:path"; import { FolderWatch, WatchStoreType } from "../../types/ipc"; -import { watchStore } from "../stores/watch.store"; +import { watchStore } from "../stores/watch"; export const findFiles = async (dirPath: string) => { const items = await fs.readdir(dirPath, { withFileTypes: true }); diff --git a/desktop/src/main/stores/watch.store.ts b/desktop/src/main/stores/watch.ts similarity index 91% rename from desktop/src/main/stores/watch.store.ts rename to desktop/src/main/stores/watch.ts index 55470ce86..e4b2efa7a 100644 --- a/desktop/src/main/stores/watch.store.ts +++ b/desktop/src/main/stores/watch.ts @@ -1,5 +1,9 @@ import Store, { Schema } from "electron-store"; -import { WatchStoreType } from "../../types/ipc"; +import { type FolderWatch } from "../../types/ipc"; + +interface WatchStoreSchema { + mappings: FolderWatch[]; +} const watchStoreSchema: Schema = { mappings: { diff --git a/desktop/src/types/ipc.ts b/desktop/src/types/ipc.ts index 3dae605a8..a568ad6e5 100644 --- a/desktop/src/types/ipc.ts +++ b/desktop/src/types/ipc.ts @@ -66,10 +66,6 @@ export interface ElectronFile { arrayBuffer: () => Promise; } -export interface WatchStoreType { - mappings: FolderWatch[]; -} - export enum FILE_PATH_TYPE { /* eslint-disable no-unused-vars */ FILES = "files",