diff --git a/.github/workflows/develop-pipeline.yml b/.github/workflows/develop-pipeline.yml index d0a4424a4..0567ca8f5 100644 --- a/.github/workflows/develop-pipeline.yml +++ b/.github/workflows/develop-pipeline.yml @@ -7,7 +7,6 @@ on: pull_request: branches: - develop - jobs: test: runs-on: ubuntu-latest diff --git a/.github/workflows/master-pipeline.yml b/.github/workflows/master-pipeline.yml index 96bdbfa30..e03cbba0f 100644 --- a/.github/workflows/master-pipeline.yml +++ b/.github/workflows/master-pipeline.yml @@ -7,7 +7,6 @@ on: pull_request: branches: - master - jobs: test: runs-on: ubuntu-latest diff --git a/src/services/donationService.ts b/src/services/donationService.ts index 43b2356c0..7041df901 100644 --- a/src/services/donationService.ts +++ b/src/services/donationService.ts @@ -317,10 +317,6 @@ export const syncDonationStatusWithBlockchainNetwork = async (params: { } await donation.save(); - // Update materialized view for project and qfRound data - await refreshProjectEstimatedMatchingView(); - await refreshProjectDonationSummaryView(); - // ONLY verified donations should be accumulated // After updating, recalculate user total donated and owner total received await updateUserTotalDonated(donation.userId); @@ -332,6 +328,10 @@ export const syncDonationStatusWithBlockchainNetwork = async (params: { donation, }); + // Update materialized view for project and qfRound data + await refreshProjectEstimatedMatchingView(); + await refreshProjectDonationSummaryView(); + // send chainvine the referral as last step to not interrupt previous if (donation.referrerWallet && donation.isReferrerGivbackEligible) { logger.info(