Skip to content

Commit

Permalink
refactor: Call method
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentinchampenois committed Oct 17, 2024
1 parent ae321c8 commit a69e450
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/jobs/decidim/spam_detection/block_users_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def perform
users = reported_spams_users
Rails.logger.info "Blocking users marked as spam: #{users.count} users found"
users.find_each do |user|
Decidim::SpamDetection::BlockSpamUserCommand.call(user, Decidim::SpamDetection::SpamUserCommandAdapter::SPAM_LEVEL[:very_sure]).call
Decidim::SpamDetection::BlockSpamUserCommand.call(user, spam_level).call
end
Rails.logger.info "Terminated..."
end
Expand Down

0 comments on commit a69e450

Please sign in to comment.