From 0ca396c00dd9e6dcd5d8245eaa2403bfd9deef04 Mon Sep 17 00:00:00 2001 From: Quentin Champenois <26109239+Quentinchampenois@users.noreply.github.com> Date: Thu, 16 Nov 2023 17:42:07 +0100 Subject: [PATCH] fix: Explicit hash for ruby < 3.0 --- app/jobs/decidim/cleaner/clean_inactive_users_job.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/jobs/decidim/cleaner/clean_inactive_users_job.rb b/app/jobs/decidim/cleaner/clean_inactive_users_job.rb index 0b5a4eb..236f43a 100644 --- a/app/jobs/decidim/cleaner/clean_inactive_users_job.rb +++ b/app/jobs/decidim/cleaner/clean_inactive_users_job.rb @@ -9,11 +9,11 @@ def perform Decidim::Organization.find_each do |organization| next unless organization.delete_inactive_users? - send_warning(Decidim::User.unscoped.where(organization:) + send_warning(Decidim::User.unscoped.where(organization: organization) .not_deleted .where.not(email: "") .where("current_sign_in_at < ?", email_inactive_before_date(organization))) - delete_user_and_send_email(Decidim::User.unscoped.where(organization:) + delete_user_and_send_email(Decidim::User.unscoped.where(organization: organization) .not_deleted .where.not(email: "") .where("warning_date < ?", delete_inactive_before_date(organization)))