Skip to content

Commit

Permalink
fix env var for model score sync
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosQ96 committed Oct 7, 2024
1 parent 67b3adb commit 1afe41c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/test.env
Original file line number Diff line number Diff line change
Expand Up @@ -257,3 +257,4 @@ STELLAR_HORIZON_API_URL=https://horizon.stellar.org
STELLAR_SCAN_API_URL=https://stellar.expert/explorer/public

ENDAOMENT_ADMIN_WALLET_ADDRESS=0xfE3524e04E4e564F9935D34bB5e80c5CaB07F5b4
SYNC_USER_MODEL_SCORE_CRONJOB_EXPRESSION=0 0 */3 * *
1 change: 1 addition & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ const envVars = [
'GIVBACK_MAX_FACTOR',
'GIVBACK_MIN_FACTOR',
'DONATION_VERIFICAITON_EXPIRATION_HOURS',
'SYNC_USER_MODEL_SCORE_CRONJOB_EXPRESSION',
];

interface requiredEnv {
Expand Down
2 changes: 1 addition & 1 deletion src/services/cronJobs/syncUsersModelScore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 1afe41c

Please sign in to comment.