From 4b00b3c2a5e3946ca74c9f954d3f5e2042836df5 Mon Sep 17 00:00:00 2001 From: Mohammad Ranjbar Z Date: Mon, 22 Jul 2024 11:58:57 +0330 Subject: [PATCH] Fix build error --- ...71952062-add_sponser_donations_to_givback_round_65.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/migration/1720771952062-add_sponser_donations_to_givback_round_65.ts b/migration/1720771952062-add_sponser_donations_to_givback_round_65.ts index ba1057ec7..fd0d1e200 100644 --- a/migration/1720771952062-add_sponser_donations_to_givback_round_65.ts +++ b/migration/1720771952062-add_sponser_donations_to_givback_round_65.ts @@ -11,11 +11,6 @@ import { updateUserTotalDonated, updateUserTotalReceived, } from '../src/services/userService'; -import { updateTotalDonationsOfProject } from '../src/services/donationService'; -import { - refreshProjectDonationSummaryView, - refreshProjectEstimatedMatchingView, -} from '../src/services/projectViewsService'; import { updateProjectStatistics } from '../src/services/projectService'; const millisecondTimestampToDate = (timestamp: number): Date => { @@ -152,12 +147,10 @@ export class AddSponserDonationsToGivbackRound651720771952062 await updateUserTotalDonated(user.id); await updateUserTotalReceived(project.adminUser?.id); - await updateTotalDonationsOfProject(tx.projectId as number); await updateProjectStatistics(tx.projectId as number); + } - await refreshProjectEstimatedMatchingView(); - await refreshProjectDonationSummaryView(); } async down(_queryRunner: QueryRunner): Promise {