core: fix record auto update

This commit is contained in:
undefined committed 2021-09-16 03:57:15 +08:00
1 parent a4f39f9930
commit 2bed36b012
4 files changed
+11 -7

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "hydrooj",
"version": "2.35.1",
"version": "2.35.2",
"bin": "bin/hydrooj.js",
"main": "src/loader",
"module": "src/loader",
+1 -1
View File
@@ -234,7 +234,7 @@ class RecordMainConnectionHandler extends ConnectionHandler {
if (!this.all && !this.pretest && rdoc.input) return;
if (!this.all && rdoc.domainId !== this.domainId) return;
if (!this.all && rdoc.contest && rdoc.contest.tid.toString() !== this.tid) return;
if (!this.all && rdoc.pid !== this.pid) return;
if (!this.all && this.pid && rdoc.pid !== this.pid) return;
if (this.uid && rdoc.uid !== this.uid) return;
// eslint-disable-next-line prefer-const