core: problem_export.storage.get

This commit is contained in:
undefined committed 2020-12-22 14:43:18 +08:00
1 parent e9dab4fb92
commit 738cb62dbd
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -244,7 +244,7 @@ export class ProblemExportHandler extends ProblemDetailHandler {
const files = await storage.list(`problem/${this.domainId}/${this.pdoc.docId}/`, true);
for (const file of files) {
// eslint-disable-next-line no-await-in-loop
const buf = await streamToBuffer(storage.get(`${file.prefix}${file.name}`));
const buf = await streamToBuffer(await storage.get(`${file.prefix}${file.name}`));
zip.addFile(file.name, buf);
}
}