Skip to content

Commit

Permalink
fix spec
Browse files Browse the repository at this point in the history
  • Loading branch information
microstudi committed Oct 7, 2024
1 parent 9066675 commit 5c4706b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/jobs/decidim/civicrm/sync_all_groups_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def update_group(organization_id, data)
group.extra = data
group.marked_for_deletion = false

group.auto_sync_members = Decidim::Civicrm.default_sync_groups&.include?(civicrm_group_id.to_i) unless group.id
group.auto_sync_members = group.id ? false : Decidim::Civicrm.default_sync_groups&.include?(civicrm_group_id.to_i).present?

group.save!

Expand Down

0 comments on commit 5c4706b

Please sign in to comment.