From 29534a271d54882d3f48c3142700a16cbcb1cae2 Mon Sep 17 00:00:00 2001 From: Maximilian Kreuzkam Date: Tue, 17 Dec 2024 17:10:05 +0100 Subject: [PATCH] adjust config var usage. --- apps/server/src/infra/sync/tsp/tsp-sync.strategy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/server/src/infra/sync/tsp/tsp-sync.strategy.ts b/apps/server/src/infra/sync/tsp/tsp-sync.strategy.ts index 0e1e9cd4b31..07877de9e24 100644 --- a/apps/server/src/infra/sync/tsp/tsp-sync.strategy.ts +++ b/apps/server/src/infra/sync/tsp/tsp-sync.strategy.ts @@ -58,7 +58,7 @@ export class TspSyncStrategy extends SyncStrategy { } private async syncSchools(system: System): Promise { - const schoolDaysToFetch = this.configService.get('TSP_SYNC_SCHOOL_LIMIT', 1); + const schoolDaysToFetch = this.configService.get('TSP_SYNC_SCHOOL_DAYS_TO_FETCH', 1); const tspSchools = await this.tspFetchService.fetchTspSchools(system, schoolDaysToFetch); this.logger.info(new TspSchoolsFetchedLoggable(tspSchools.length, schoolDaysToFetch));