mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +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;
|
||||
for (const i of organizations) orgId[i] = `org-${oid++}`;
|
||||
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>[] = [
|
||||
getFeed('contest', {
|
||||
id: tdoc._id.toHexString(),
|
||||
|
||||
Reference in new issue
Block a user