diff --git a/src/services/importService.ts b/src/services/importService.ts index 85f5bf9dc..626bbe612 100644 --- a/src/services/importService.ts +++ b/src/services/importService.ts @@ -1,7 +1,6 @@ -import { UPLOAD_TYPE } from 'components/Upload/Uploader'; import { Collection } from 'types/collection'; import { ElectronAPIs } from 'types/electron'; -import { ElectronFile, FileWithCollection } from 'types/upload'; +import { ElectronFile, FileWithCollection, UPLOAD_TYPE } from 'types/upload'; import { runningInBrowser } from 'utils/common'; import { logError } from 'utils/sentry'; diff --git a/src/services/watchFolder/watchFolderService.ts b/src/services/watchFolder/watchFolderService.ts index 271a3e00d..2eb61fdbe 100644 --- a/src/services/watchFolder/watchFolderService.ts +++ b/src/services/watchFolder/watchFolderService.ts @@ -161,7 +161,7 @@ class watchFolderService { ): Promise { const notDeletedMappings = []; for (const mapping of mappings) { - const mappingExists = await this.ElectronAPIs.doesFolderExists( + const mappingExists = await this.ElectronAPIs.isFolder( mapping.folderPath ); if (!mappingExists) { @@ -531,9 +531,7 @@ class watchFolderService { async isFolder(folderPath: string) { try { - const isFolder = await this.ElectronAPIs.doesFolderExists( - folderPath - ); + const isFolder = await this.ElectronAPIs.isFolder(folderPath); return isFolder; } catch (e) { logError(e, 'error while checking if folder exists');