From ed9e49cf35a5ccc90963e41f8c8c9b0d193aec84 Mon Sep 17 00:00:00 2001 From: TomElliottFlexion <66225176+TomElliottFlexion@users.noreply.github.com> Date: Tue, 22 Oct 2024 20:38:45 -0500 Subject: [PATCH] 10275: revert mocks --- ...ateSuggestedTrialSessionCalendarInteractor.ts | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/web-api/src/business/useCases/trialSessions/generateSuggestedTrialSessionCalendarInteractor.ts b/web-api/src/business/useCases/trialSessions/generateSuggestedTrialSessionCalendarInteractor.ts index 66cbd13195e..d1b9dbc3ed7 100644 --- a/web-api/src/business/useCases/trialSessions/generateSuggestedTrialSessionCalendarInteractor.ts +++ b/web-api/src/business/useCases/trialSessions/generateSuggestedTrialSessionCalendarInteractor.ts @@ -33,8 +33,6 @@ import { oneSessionPerLocationPerWeekConstraint, reservedWeekOfAtLocationConstraint, } from '@web-api/business/useCaseHelper/trialSessions/trialSessionCalendaring/constraints'; -import mockCases from '@shared/test/mockReadyForTrialCases.json'; -import mockSessions from '@shared/test/mockTrialSessions.json'; const MAX_SESSIONS_PER_WEEK = 6; const MAX_SESSIONS_PER_LOCATION = 5; @@ -85,18 +83,16 @@ export const generateSuggestedTrialSessionCalendarInteractor = async ( } console.time('10275: Get ready for trial cases time'); - // const cases = await applicationContext - // .getPersistenceGateway() - // .getSuggestedCalendarCases({ applicationContext }); - const cases = mockCases; + const cases = await applicationContext + .getPersistenceGateway() + .getSuggestedCalendarCases({ applicationContext }); console.timeEnd('10275: Get ready for trial cases time'); console.time('10275: Get trial sessions time'); - // const sessions = await applicationContext - // .getPersistenceGateway() - // .getTrialSessions({ applicationContext }); - const sessions = mockSessions; + const sessions = await applicationContext + .getPersistenceGateway() + .getTrialSessions({ applicationContext }); console.timeEnd('10275: Get trial sessions time'); // Note (10275): storing trial session data differently would make for a more