Skip to content

Commit

Permalink
Rewrite logic for when user cleaner is started
Browse files Browse the repository at this point in the history
  • Loading branch information
Splines committed Jul 10, 2024
1 parent dd2571f commit afe4ff3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/workers/user_cleaner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def perform
# Note that Rails.env.production? is not sufficient in this context
# as both mampf-experimental and mampf-dev also run in production mode.
production_name = ENV.fetch("PRODUCTION_NAME", nil)
return if ["mampf-experimental", "mampf-dev"].include?(production_name)
return unless production_name == "mampf"

UserCleaner.new.handle_inactive_users!
end
Expand Down

0 comments on commit afe4ff3

Please sign in to comment.