Skip to content

Commit

Permalink
Merge pull request #1111 from Giveth/merge_master_to_staging
Browse files Browse the repository at this point in the history
Merge master to staging
  • Loading branch information
aminlatifi authored Aug 31, 2023
2 parents 74599a3 + 6d74546 commit 77b526f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion .github/workflows/develop-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
pull_request:
branches:
- develop

jobs:
test:
runs-on: ubuntu-latest
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/master-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
pull_request:
branches:
- master

jobs:
test:
runs-on: ubuntu-latest
Expand Down
8 changes: 4 additions & 4 deletions src/services/donationService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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(
Expand Down

0 comments on commit 77b526f

Please sign in to comment.