Skip to content

Commit be48279

Browse files
committed
fix: update Gitcoin scores job to handle null values in analysis and passport scores
1 parent b8abe35 commit be48279

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/cronJobs/updateGitcoinScoresJob.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const runUpdateGitcoinScoresJob = () => {
2626
skipVerification: true,
2727
})
2828
.andWhere(
29-
'(user.analysisScore < :minAnalysisScore OR user.passportScore < :minPassportScore)',
29+
'(user.analysisScore IS NULL OR user.passportScore IS NULL OR user.analysisScore < :minAnalysisScore OR user.passportScore < :minPassportScore)',
3030
{
3131
minAnalysisScore: GITCOIN_PASSPORT_MIN_VALID_ANALYSIS_SCORE,
3232
minPassportScore: GITCOIN_PASSPORT_MIN_VALID_SCORER_SCORE,

0 commit comments

Comments
 (0)