mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
core: RecordConn: fix pretest filter
This commit is contained in:
1 parent
816fc88c01
commit
b1e7989894
1 file changed
+1
-1
@@ -353,7 +353,7 @@ export class RecordMainConnectionHandler extends ConnectionHandler {
|
||||
async onRecordChange(rdoc: RecordDoc) {
|
||||
if (!this.allDomain) {
|
||||
if (rdoc.domainId !== this.args.domainId) return;
|
||||
if (!this.pretest && typeof rdoc.input === 'string') return;
|
||||
if (!this.pretest && rdoc.contest?.toString() === '0'.repeat(24)) return;
|
||||
if (!this.all) {
|
||||
if (!rdoc.contest && this.tid) return;
|
||||
if (rdoc.contest && ![this.tid, '000000000000000000000000'].includes(rdoc.contest.toString())) return;
|
||||
|
||||
Reference in new issue
Block a user