mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
upgrade dep
This commit is contained in:
1 parent
96006d88b1
commit
1e0f651dea
8 files changed
+27
-61
No files matched your search
@@ -198,15 +198,15 @@ class RecordDetailConnectionHandler extends contest.ContestHandlerMixin(Connecti
|
||||
this.onRecordChange(rdoc);
|
||||
}
|
||||
|
||||
// eslint-disable-next-line
|
||||
async onRecordChange(rdoc: Rdoc, $set?: any, $push?: any) {
|
||||
if (rdoc._id.toString() !== this.rid) return;
|
||||
if ($set) this.send({ $set, $push });
|
||||
else {
|
||||
this.send({
|
||||
status_html: await this.renderHTML('record_detail_status.html', { rdoc }),
|
||||
summary_html: await this.renderHTML('record_detail_summary.html', { rdoc }),
|
||||
});
|
||||
}
|
||||
// TODO: frontend doesn't support incremental update
|
||||
// if ($set) this.send({ $set, $push });
|
||||
this.send({
|
||||
status_html: await this.renderHTML('record_detail_status.html', { rdoc }),
|
||||
summary_html: await this.renderHTML('record_detail_summary.html', { rdoc }),
|
||||
});
|
||||
}
|
||||
|
||||
async cleanup() {
|
||||
|
||||
Reference in new issue
Block a user