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