fix build
This commit is contained in:
parent
7f8ca59c25
commit
48029d7aa8
|
@ -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';
|
||||
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue