mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
fix build
This commit is contained in:
7 files changed
+8
-6
No files matched your search
@@ -385,7 +385,8 @@ export async function run({
|
||||
} catch (e) {
|
||||
throw new ValidationError('zip', null, e.message);
|
||||
}
|
||||
data.code = await entries.find((i) => i.filename.endsWith('answer.code'))?.getData(new Zip.TextWriter()) || '';
|
||||
const codeEntry = entries.find((i) => i.filename.endsWith('answer.code') && i.directory === false);
|
||||
data.code = await (codeEntry as any)?.getData(new Zip.TextWriter()) || '';
|
||||
} catch { /* ignore no code */ }
|
||||
const result = JSON.parse(Buffer.from(rdoc.result, 'base64').toString('utf8'));
|
||||
if (result.error) {
|
||||
|
||||
Reference in new issue
Block a user