From 2e77faf0ebc36b688b404df8a1c21c9da436e9bf Mon Sep 17 00:00:00 2001 From: Steph0 Date: Mon, 23 Sep 2024 16:01:37 +0200 Subject: [PATCH] :sparkles: api: seeds with reconciliation date --- api/db/seeds/data/common/tooling/session-tooling.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/db/seeds/data/common/tooling/session-tooling.js b/api/db/seeds/data/common/tooling/session-tooling.js index 38f7075daeb..243e4a96031 100644 --- a/api/db/seeds/data/common/tooling/session-tooling.js +++ b/api/db/seeds/data/common/tooling/session-tooling.js @@ -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, @@ -685,6 +686,7 @@ async function _registerCandidatesToSession({ createdAt: configSession.sessionDate, extraTimePercentage: randomExtraTimePercentage, userId, + reconciledAt: hasJoinSession ? new Date() : null, organizationLearnerId: null, authorizedToStart: false, billingMode: randomBillingMode, @@ -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,