fix build

This commit is contained in:
Abhinav 2022-08-29 16:59:37 +05:30
parent 7f8ca59c25
commit 48029d7aa8
2 changed files with 3 additions and 6 deletions

View file

@ -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';

View file

@ -161,7 +161,7 @@ class watchFolderService {
): Promise<WatchMapping[]> {
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');