feat: Bulk HTML export (#4620)
* wip * Working bulk html export * Refactor * test * test
This commit is contained in:
10
server/queues/tasks/ExportHTMLZipTask.ts
Normal file
10
server/queues/tasks/ExportHTMLZipTask.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { FileOperationFormat } from "@shared/types";
|
||||
import { Collection } from "@server/models";
|
||||
import { archiveCollections } from "@server/utils/zip";
|
||||
import ExportTask from "./ExportTask";
|
||||
|
||||
export default class ExportHTMLZipTask extends ExportTask {
|
||||
public async export(collections: Collection[]) {
|
||||
return await archiveCollections(collections, FileOperationFormat.HTMLZip);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user