core&ui: bug fix

This commit is contained in:
undefined committed 2022-11-19 17:57:31 +08:00
1 parent 273a0563b3
commit 60820a3e5f
7 files changed
+15 -12

No files matched your search

+2 -2
View File
@@ -17,7 +17,7 @@
"@aws-sdk/middleware-endpoint": "^3.212.0",
"@aws-sdk/s3-presigned-post": "^3.212.0",
"@aws-sdk/s3-request-presigner": "^3.212.0",
"@graphql-tools/schema": "^8.5.1",
"@graphql-tools/schema": "^9.0.10",
"@hydrooj/utils": "workspace:*",
"adm-zip": "0.5.5",
"cac": "^6.7.14",
@@ -27,7 +27,7 @@
"emojis-list": "2.1.0",
"fs-extra": "^10.1.0",
"graphql": "^16.6.0",
"graphql-scalars": "1.18.0",
"graphql-scalars": "1.20.1",
"isbinaryfile": "^5.0.0",
"js-yaml": "^4.1.0",
"koa": "^2.13.4",
+1 -1
View File
@@ -346,7 +346,7 @@ class RecordDetailConnectionHandler extends ConnectionHandler {
if (!problem.canViewBy(pdoc, this.user)) throw new PermissionError(PERM.PERM_VIEW_PROBLEM_HIDDEN);
}
this.throttleSend = throttle(this.send, 1000);
this.throttleSend = throttle(this.sendUpdate, 1000);
this.rid = rid.toString();
this.cleanup = bus.on('record/change', this.onRecordChange.bind(this));
this.onRecordChange(rdoc);