Skip to content

Commit 1d1502d

Browse files
committed
onsite-toolkit: fix contest_freeze_time
1 parent 23e4dbf commit 1d1502d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/onsite-toolkit/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export function apply(ctx: Context) {
118118
let oid = 1;
119119
for (const i of organizations) orgId[i] = `org-${oid++}`;
120120
const duration = moment(tdoc.endAt).diff(tdoc.beginAt, 'seconds');
121-
const lockDuration = tdoc.lockAt ? moment(tdoc.lockAt).diff(tdoc.beginAt, 'seconds') : null;
121+
const lockDuration = tdoc.lockAt ? moment(tdoc.endAt).diff(tdoc.lockAt, 'seconds') : null;
122122
const eventfeed: Record<string, any>[] = [
123123
getFeed('contest', {
124124
id: tdoc._id.toHexString(),

0 commit comments

Comments
 (0)