Skip to content

Commit

Permalink
Move updating views functions out of the loop
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammadranjbarz committed Dec 24, 2023
1 parent 64a2faf commit 4722970
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions migration/1703398409668-add_missed_op_donations_to_db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,10 @@ export class addMissedOpDonationsToDb1703398409668
await updateUserTotalDonated(user.id);
await updateUserTotalReceived(project.adminUser?.id);
await updateTotalDonationsOfProject(tx.projectId as number);
await refreshProjectEstimatedMatchingView();
await refreshProjectDonationSummaryView();
}

await refreshProjectEstimatedMatchingView();
await refreshProjectDonationSummaryView();
}

async down(queryRunner: QueryRunner): Promise<void> {
Expand Down

0 comments on commit 4722970

Please sign in to comment.