mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
contest: fix unrank no display on contest user
This commit is contained in:
1 file changed
+3
-1
@@ -626,7 +626,9 @@ export class ContestFileDownloadHandler extends ContestDetailBaseHandler {
|
|||||||
export class ContestUserHandler extends ContestManagementBaseHandler {
|
export class ContestUserHandler extends ContestManagementBaseHandler {
|
||||||
@param('tid', Types.ObjectId)
|
@param('tid', Types.ObjectId)
|
||||||
async get(domainId: string, tid: ObjectId) {
|
async get(domainId: string, tid: ObjectId) {
|
||||||
const tsdocs = await contest.getMultiStatus(domainId, { docId: tid }).project({ uid: 1, attend: 1, startAt: 1 }).toArray();
|
const tsdocs = await contest.getMultiStatus(domainId, { docId: tid }).project({
|
||||||
|
uid: 1, attend: 1, startAt: 1, unrank: 1,
|
||||||
|
}).toArray();
|
||||||
tsdocs.forEach((i) => {
|
tsdocs.forEach((i) => {
|
||||||
i.endAt = (this.tdoc.duration && i.startAt) ? moment(i.startAt).add(this.tdoc.duration, 'hours').toDate() : null;
|
i.endAt = (this.tdoc.duration && i.startAt) ? moment(i.startAt).add(this.tdoc.duration, 'hours').toDate() : null;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user