mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
core: problem_export.storage.get
This commit is contained in:
1 parent
e9dab4fb92
commit
738cb62dbd
2 files changed
+2
-2
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user