core: record_main忽略自测信息更新

This commit is contained in:
undefined committed 2021-02-23 12:08:09 +08:00
1 parent ac6ccc438b
commit 43d721b630
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "hydrooj", "name": "hydrooj",
"version": "2.17.19", "version": "2.17.20",
"bin": "bin/hydrooj.js", "bin": "bin/hydrooj.js",
"main": "dist/loader.js", "main": "dist/loader.js",
"typings": "dist/loader.d.ts", "typings": "dist/loader.d.ts",
+1
View File
@@ -176,6 +176,7 @@ class RecordMainConnectionHandler extends RecordConnectionHandler {
} }
async onRecordChange(rdoc: Rdoc) { async onRecordChange(rdoc: Rdoc) {
if (rdoc.input) return;
if (rdoc.contest && rdoc.contest.tid.toString() !== this.tid) return; if (rdoc.contest && rdoc.contest.tid.toString() !== this.tid) return;
// eslint-disable-next-line prefer-const // eslint-disable-next-line prefer-const
let [udoc, pdoc] = await Promise.all([ let [udoc, pdoc] = await Promise.all([