mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: fix tsdoc.endAt display
This commit is contained in:
1 parent
a8675a45c5
commit
981f8a4b9d
2 files changed
+2
-2
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hydrooj",
|
"name": "hydrooj",
|
||||||
"version": "3.15.2",
|
"version": "3.15.3",
|
||||||
"bin": "bin/hydrooj.js",
|
"bin": "bin/hydrooj.js",
|
||||||
"main": "src/loader",
|
"main": "src/loader",
|
||||||
"module": "src/loader",
|
"module": "src/loader",
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ export class ContestDetailBaseHandler extends Handler {
|
|||||||
throw new ForbiddenError('You are not assigned.');
|
throw new ForbiddenError('You are not assigned.');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (this.tdoc.duration && this.tsdoc?.attend) {
|
if (this.tdoc.duration && this.tsdoc?.startAt) {
|
||||||
this.tsdoc.endAt = moment(this.tsdoc.startAt).add(this.tdoc.duration, 'hours').toDate();
|
this.tsdoc.endAt = moment(this.tsdoc.startAt).add(this.tdoc.duration, 'hours').toDate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user