core: problem_export.storage.get

pull/39/head
undefined 4 years ago
parent e9dab4fb92
commit 738cb62dbd

@ -1,6 +1,6 @@
{
"name": "hydrooj",
"version": "2.15.0",
"version": "2.15.1",
"bin": "bin/hydrooj.js",
"main": "dist/loader.js",
"typings": "dist/loader.d.ts",

@ -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);
}
}

Loading…
Cancel
Save