Skip to content

Commit

Permalink
add continue on error from import
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosQ96 committed Jan 30, 2024
1 parent e02b04a commit 323672b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/services/cronJobs/importLostDonationsJob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,13 +239,15 @@ export const importLostDonations = async () => {
} catch (e) {
logger.debug('Error saving donation for for tx: ', tx);
logger.debug('Error saving donation: ', e);
continue;
}

await updateUserTotalDonated(dbUser.id);
await updateUserTotalReceived(project.adminUser?.id);
await updateTotalDonationsOfProject(project.id);
} catch (e) {
logger.error('importLostDonations() error');
continue;
}
}

Expand Down

0 comments on commit 323672b

Please sign in to comment.