Skip to content

Commit

Permalink
✨ api: seeds with reconciliation date
Browse files Browse the repository at this point in the history
  • Loading branch information
Steph0 committed Sep 23, 2024
1 parent 07f6a47 commit cac774d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/db/seeds/data/common/tooling/session-tooling.js
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,7 @@ function _addCertificationCandidatesToScoSession(
createdAt: new Date(),
extraTimePercentage: extraTimePercentages[index % extraTimePercentages.length],
userId: hasJoinSession ? organizationLearner.userId : null,
reconciledAt: hasJoinSession ? new Date() : null,
organizationLearnerId: organizationLearner.id,
authorizedToStart: false,
billingMode: null,
Expand Down Expand Up @@ -685,6 +686,7 @@ async function _registerCandidatesToSession({
createdAt: configSession.sessionDate,
extraTimePercentage: randomExtraTimePercentage,
userId,
reconciledAt: hasJoinSession ? new Date() : null,
organizationLearnerId: null,
authorizedToStart: false,
billingMode: randomBillingMode,
Expand Down Expand Up @@ -770,6 +772,7 @@ async function _registerSomeCandidatesToSession({ databaseBuilder, sessionId, co
createdAt: new Date(),
extraTimePercentage: randomExtraTimePercentage,
userId: hasJoinedSession ? userId : null,
reconciledAt: hasJoinedSession ? new Date() : null,
organizationLearnerId: null,
authorizedToStart: false,
billingMode: randomBillingMode,
Expand Down

0 comments on commit cac774d

Please sign in to comment.