From 9d56cff806779ff462d8dc360b9df32fb40780c8 Mon Sep 17 00:00:00 2001 From: Carlos Date: Mon, 7 Oct 2024 16:04:09 +0200 Subject: [PATCH] fix env var for model score sync --- src/config.ts | 1 + src/services/cronJobs/syncUsersModelScore.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/config.ts b/src/config.ts index be3f52e62..d94dba840 100644 --- a/src/config.ts +++ b/src/config.ts @@ -56,6 +56,7 @@ const envVars = [ 'GIVBACK_MAX_FACTOR', 'GIVBACK_MIN_FACTOR', 'DONATION_VERIFICAITON_EXPIRATION_HOURS', + 'SYNC_USER_MODEL_SCORE_CRONJOB_EXPRESSION', ]; interface requiredEnv { diff --git a/src/services/cronJobs/syncUsersModelScore.ts b/src/services/cronJobs/syncUsersModelScore.ts index 944363e6a..ea0d39a52 100644 --- a/src/services/cronJobs/syncUsersModelScore.ts +++ b/src/services/cronJobs/syncUsersModelScore.ts @@ -10,7 +10,7 @@ import { findUserById } from '../../repositories/userRepository'; import { UserQfRoundModelScore } from '../../entities/userQfRoundModelScore'; const cronJobTime = - (config.get('MAKE_UNREVIEWED_PROJECT_LISTED_CRONJOB_EXPRESSION') as string) || + (config.get('SYNC_USER_MODEL_SCORE_CRONJOB_EXPRESSION') as string) || '0 0 * * * *'; const qfRoundUsersMissedMBDScore = Number(