From b4961805823191ccb4cdf518c2502f891c8d41ca Mon Sep 17 00:00:00 2001 From: Wilco Date: Sun, 7 May 2023 17:45:41 +0200 Subject: [PATCH] Fix archiving of flux account (#862) --- app/controllers/users_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index eeefa5ac0..48481299e 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -75,7 +75,7 @@ def refresh_user_list find_or_create_user(user_json) end - users_not_in_json = User.active.in_amber.where.not(uid: users_json.pluck('id')) + users_not_in_json = User.active.in_amber.where.not(uid: users_json.pluck('id')).where.not(name: 'Streepsysteem Flux') users_not_in_json.each(&:archive!) send_slack_users_refresh_notification