Remove old types

This commit is contained in:
Manav Rathi 2024-04-17 20:56:58 +05:30
parent acec41f526
commit cdc45e9fcc
No known key found for this signature in database
2 changed files with 2 additions and 18 deletions

View file

@ -6,14 +6,13 @@
import { ensureElectron } from "@/next/electron";
import { nameAndExtension } from "@/next/file";
import log from "@/next/log";
import type { CollectionMapping, FolderWatch } from "@/next/types/ipc";
import type { CollectionMapping, FolderWatch, FolderWatchSyncedFile } from "@/next/types/ipc";
import { UPLOAD_RESULT } from "constants/upload";
import debounce from "debounce";
import uploadManager from "services/upload/uploadManager";
import { Collection } from "types/collection";
import { EncryptedEnteFile } from "types/file";
import { ElectronFile, FileWithCollection } from "types/upload";
import { WatchMappingSyncedFile } from "types/watchFolder";
import { groupFilesBasedOnCollectionID } from "utils/file";
import { isSystemFile } from "utils/upload";
import { removeFromCollection } from "./collectionService";
@ -477,7 +476,7 @@ class WatchFolderService {
private async trashByIDs(toTrashFiles: FolderWatch["syncedFiles"]) {
try {
const files = await getLocalFiles();
const toTrashFilesMap = new Map<number, WatchMappingSyncedFile>();
const toTrashFilesMap = new Map<number, FolderWatchSyncedFile>();
for (const file of toTrashFiles) {
toTrashFilesMap.set(file.uploadedFileID, file);
}

View file

@ -1,15 +0,0 @@
import { UPLOAD_STRATEGY } from "constants/upload";
export interface WatchMappingSyncedFile {
path: string;
uploadedFileID: number;
collectionID: number;
}
export interface WatchMapping {
rootFolderName: string;
folderPath: string;
uploadStrategy: UPLOAD_STRATEGY;
syncedFiles: WatchMappingSyncedFile[];
ignoredFiles: string[];
}