mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
onsite-toolkit: fix contest_freeze_time
This commit is contained in:
1 file changed
+1
-1
@@ -118,7 +118,7 @@ export function apply(ctx: Context) {
|
|||||||
let oid = 1;
|
let oid = 1;
|
||||||
for (const i of organizations) orgId[i] = `org-${oid++}`;
|
for (const i of organizations) orgId[i] = `org-${oid++}`;
|
||||||
const duration = moment(tdoc.endAt).diff(tdoc.beginAt, 'seconds');
|
const duration = moment(tdoc.endAt).diff(tdoc.beginAt, 'seconds');
|
||||||
const lockDuration = tdoc.lockAt ? moment(tdoc.lockAt).diff(tdoc.beginAt, 'seconds') : null;
|
const lockDuration = tdoc.lockAt ? moment(tdoc.endAt).diff(tdoc.lockAt, 'seconds') : null;
|
||||||
const eventfeed: Record<string, any>[] = [
|
const eventfeed: Record<string, any>[] = [
|
||||||
getFeed('contest', {
|
getFeed('contest', {
|
||||||
id: tdoc._id.toHexString(),
|
id: tdoc._id.toHexString(),
|
||||||
|
|||||||
Reference in new issue
Block a user