update types

This commit is contained in:
undefined committed 2023-12-17 21:46:00 +08:00
1 parent 3a28faff25
commit ca65b3371f
2 files changed
+2 -7

No files matched your search

+1 -6
View File
@@ -106,10 +106,7 @@ class SystemScriptHandler extends SystemHandler {
args = global.Hydro.script[id].validate(args);
}
const rid = await record.add(domainId, -1, this.user._id, '-', id, false, { input: raw, type: 'pretest' });
const rdoc = await record.get(rid);
const report = (data) => judge.next({
domainId, rid, ...data, rdoc,
});
const report = (data) => judge.next({ domainId, rid, ...data });
report({ message: `Running script: ${id} `, status: STATUS.STATUS_JUDGING });
const start = Date.now();
// Maybe async?
@@ -124,7 +121,6 @@ class SystemScriptHandler extends SystemHandler {
judger: 1,
time,
memory: 0,
rdoc,
});
})
.catch((err: Error) => {
@@ -138,7 +134,6 @@ class SystemScriptHandler extends SystemHandler {
judger: 1,
time,
memory: 0,
rdoc,
});
});
this.response.body = { rid };