Files
outline/server/queues/tasks/ExportHTMLZipTask.ts
Tom Moor bb568d2e62 fix: Exports generate invalid internal links (#4639)
* refactoring

* Refactoring continues

* Refactor export, fix internal links in exported docs

* fix: Dupe document name detection

* sigh
2023-01-04 04:18:59 -08:00

17 lines
466 B
TypeScript

import JSZip from "jszip";
import { FileOperationFormat } from "@shared/types";
import { Collection } from "@server/models";
import ExportDocumentTreeTask from "./ExportDocumentTreeTask";
export default class ExportHTMLZipTask extends ExportDocumentTreeTask {
public async export(collections: Collection[]) {
const zip = new JSZip();
return await this.addCollectionsToArchive(
zip,
collections,
FileOperationFormat.HTMLZip
);
}
}