upgrade dep

This commit is contained in:
undefined committed 2021-03-31 22:37:59 +08:00
1 parent 96006d88b1
commit 1e0f651dea
8 files changed
+27 -61

No files matched your search

+7 -7
View File
@@ -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() {