diff --git a/lemarche/crm/management/commands/crm_brevo_sync_companies.py b/lemarche/crm/management/commands/crm_brevo_sync_companies.py index 1a5014a15..4590066e3 100644 --- a/lemarche/crm/management/commands/crm_brevo_sync_companies.py +++ b/lemarche/crm/management/commands/crm_brevo_sync_companies.py @@ -49,7 +49,7 @@ def handle(self, recently_updated: bool, **options): } # extra_data update if needed - if siae.extra_data != new_extra_data: + if siae.extra_data.get("brevo_company_data") != new_extra_data: siae.extra_data.update( { "brevo_company_data": new_extra_data,