test (#4796)
This commit is contained in:
@@ -11,10 +11,10 @@ import ImportTask, { StructuredImportData } from "./ImportTask";
|
||||
|
||||
export default class ImportNotionTask extends ImportTask {
|
||||
public async parseData(
|
||||
buffer: Buffer,
|
||||
stream: NodeJS.ReadableStream,
|
||||
fileOperation: FileOperation
|
||||
): Promise<StructuredImportData> {
|
||||
const zip = await JSZip.loadAsync(buffer);
|
||||
const zip = await JSZip.loadAsync(stream);
|
||||
const tree = ZipHelper.toFileTree(zip);
|
||||
return this.parseFileTree({ fileOperation, zip, tree });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user