diff --git a/salesforce/management/commands/update_opportunities.py b/salesforce/management/commands/update_opportunities.py index be6d0607..f4af20af 100644 --- a/salesforce/management/commands/update_opportunities.py +++ b/salesforce/management/commands/update_opportunities.py @@ -3,6 +3,7 @@ from django.core.management.base import BaseCommand from salesforce.models import AdoptionOpportunityRecord from salesforce.salesforce import Salesforce +from global_settings.functions import invalidate_cloudfront_caches import sentry_sdk from sentry_sdk.crons import monitor @@ -77,3 +78,5 @@ def handle(self, *args, **options): results = sf.bulk.Adoption__c.query(updated_records) self.process_results(results) + invalidate_cloudfront_caches('salesforce/renewal') +