mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
upgrade dep
This commit is contained in:
1 parent
96006d88b1
commit
1e0f651dea
8 files changed
+27
-61
No files matched your search
@@ -65,7 +65,7 @@ class FpsProblemImportHandler extends Handler {
|
||||
try {
|
||||
const file = await fs.stat(this.request.files.file.path);
|
||||
if (file.size > 64 * 1024 * 1024) throw new FileTooLargeError('64m');
|
||||
const content = fs.readFile(this.request.files.file.path).toString();
|
||||
const content = fs.readFileSync(this.request.files.file.path, 'utf-8');
|
||||
const result = await xml2js.parseStringPromise(content);
|
||||
tasks.push(result);
|
||||
} catch (e) {
|
||||
|
||||
Reference in new issue
Block a user