about summary refs log tree commit diff
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-08-08 09:36:05 -0500
committermultiple creatures <dev@multiple-creature.party>2019-08-08 09:36:05 -0500
commitd8a1e472c2218fa2e71eef890ce89336d315c2ae (patch)
tree51b37b1702d2713d5d33506be20b54e51670b6ac
parentbcfa50f5f585468d03e3471b4d282fca8cfaeee6 (diff)
janitor - make sure values excludes are deduped
-rw-r--r--app/workers/scheduler/janitor_scheduler.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/workers/scheduler/janitor_scheduler.rb b/app/workers/scheduler/janitor_scheduler.rb
index 4fff07587..eb4192dd5 100644
--- a/app/workers/scheduler/janitor_scheduler.rb
+++ b/app/workers/scheduler/janitor_scheduler.rb
@@ -13,9 +13,9 @@ class Scheduler::JanitorScheduler
     @account = janitor_account
     return if @account.nil?
 
-    @exclude_ids = excluded_account_ids
-    @exclude_domains = excluded_domains
-    @exclude_markov = excluded_accounts_from_env('MARKOV')
+    @exclude_ids = excluded_account_ids.uniq
+    @exclude_domains = excluded_domains.uniq
+    @exclude_markov = excluded_accounts_from_env('MARKOV').uniq
 
     prune_deleted_accounts!
     suspend_abandoned_accounts!