mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: RecordMainConnection: filter by domainId
This commit is contained in:
1 parent
09a83c4364
commit
27904e0d7a
1 file changed
+1
@@ -178,6 +178,7 @@ class RecordMainConnectionHandler extends RecordConnectionHandler {
|
|||||||
async onRecordChange(rdoc: Rdoc) {
|
async onRecordChange(rdoc: Rdoc) {
|
||||||
if (rdoc.input) return;
|
if (rdoc.input) return;
|
||||||
if (rdoc.contest && rdoc.contest.tid.toString() !== this.tid) return;
|
if (rdoc.contest && rdoc.contest.tid.toString() !== this.tid) return;
|
||||||
|
if (rdoc.domainId !== this.domainId) 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([
|
||||||
user.getById(this.domainId, rdoc.uid),
|
user.getById(this.domainId, rdoc.uid),
|
||||||
|
|||||||
Reference in new issue
Block a user