Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge master to staging #1111

Merged
merged 10 commits into from
Aug 31, 2023
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
Loading