diff --git a/task_manager.ts b/task_manager.ts index fad2ff1..d37e87f 100644 --- a/task_manager.ts +++ b/task_manager.ts @@ -16,7 +16,7 @@ import { ExportZipConfig, } from "./tasks/export_zip.ts"; import { fix_gallery_page } from "./tasks/fix_gallery_page.ts"; -import { ImportConfig } from "./tasks/import.ts"; +import { import_task, ImportConfig } from "./tasks/import.ts"; import { update_meili_search_data } from "./tasks/update_meili_search_data.ts"; import { DiscriminatedUnion, @@ -379,6 +379,11 @@ export class TaskManager extends EventTarget { task: fix_gallery_page(task, this), base: task, }); + } else if (task.type == TaskType.Import) { + this.running_tasks.set(BigInt(task.id), { + task: import_task(task, this), + base: task, + }); } } async update_task(t: Task) {