From 168fc8bd03751a5d45e895df9305d8fdef37d0f9 Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Mon, 11 Mar 2024 14:55:50 +0200 Subject: [PATCH] fix testing acocunt --- lib/accounts.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/accounts.rb b/lib/accounts.rb index 588ceb28..208ea783 100644 --- a/lib/accounts.rb +++ b/lib/accounts.rb @@ -32,7 +32,7 @@ module Accounts end def find_or_create_testing_user(account) - user = User.find_by(account: account.testing_accounts) + user = User.where(role: :admin).order(:id).find_by(account: account.testing_accounts) return user if user