diff --git a/api/CHANGELOG.md b/api/CHANGELOG.md index 862c468984..24a47e437b 100644 --- a/api/CHANGELOG.md +++ b/api/CHANGELOG.md @@ -2,6 +2,14 @@ All notable changes to the **Prowler API** are documented in this file. + +## [1.15.2] (Prowler v5.14.2) + +### Fixed +- Unique constraint violation during compliance overviews task [(#9436)](https://github.com/prowler-cloud/prowler/pull/9436) + +--- + ## [1.15.1] (Prowler v5.14.1) ### Fixed diff --git a/api/src/backend/tasks/jobs/scan.py b/api/src/backend/tasks/jobs/scan.py index 7d1f74a8d8..eee8e86c06 100644 --- a/api/src/backend/tasks/jobs/scan.py +++ b/api/src/backend/tasks/jobs/scan.py @@ -330,7 +330,7 @@ def _create_compliance_summaries( if summary_objects: with rls_transaction(tenant_id): ComplianceOverviewSummary.objects.bulk_create( - summary_objects, batch_size=500 + summary_objects, batch_size=500, ignore_conflicts=True )