perf: Read attachment buffers only when neccessary, closes #3849
This commit is contained in:
@@ -71,7 +71,7 @@ export default class ImportMarkdownZipTask extends ImportTask {
|
||||
name: child.name,
|
||||
path: child.path,
|
||||
mimeType: mime.lookup(child.path) || "application/octet-stream",
|
||||
buffer: await zipObject.async("nodebuffer"),
|
||||
buffer: () => zipObject.async("nodebuffer"),
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user