File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import {
1515 GITCOIN_PASSPORT_MIN_VALID_SCORER_SCORE ,
1616} from '../constants/gitcoin' ;
1717import { Donation , DONATION_STATUS } from '../entities/donation' ;
18+ import { logger } from '../utils/logger' ;
1819// import { Project } from '../entities/project';
1920
2021const getEaProjectRoundRecord = async ( {
@@ -247,7 +248,11 @@ const getUserRemainedCapBasedOnGitcoinScore = async ({
247248 user . passportScoreUpdateTimestamp . getTime ( ) <
248249 Date . now ( ) - GITCOIN_PASSPORT_EXPIRATION_PERIOD_MS
249250 ) {
250- await updateUserGitcoinScores ( user ) ;
251+ try {
252+ await updateUserGitcoinScores ( user ) ;
253+ } catch ( error ) {
254+ logger . error ( 'updateUserGitcoinScores() error' , error ) ;
255+ }
251256 }
252257 if (
253258 ! user . skipVerification &&
You can’t perform that action at this time.
0 commit comments