We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23e4dbf commit 1d1502dCopy full SHA for 1d1502d
1 file changed
packages/onsite-toolkit/index.ts
@@ -118,7 +118,7 @@ export function apply(ctx: Context) {
118
let oid = 1;
119
for (const i of organizations) orgId[i] = `org-${oid++}`;
120
const duration = moment(tdoc.endAt).diff(tdoc.beginAt, 'seconds');
121
- const lockDuration = tdoc.lockAt ? moment(tdoc.lockAt).diff(tdoc.beginAt, 'seconds') : null;
+ const lockDuration = tdoc.lockAt ? moment(tdoc.endAt).diff(tdoc.lockAt, 'seconds') : null;
122
const eventfeed: Record<string, any>[] = [
123
getFeed('contest', {
124
id: tdoc._id.toHexString(),
0 commit comments