fix testing acocunt

This commit is contained in:
Pete Matsyburka
2024-03-11 14:55:50 +02:00
parent c5598d9efe
commit 168fc8bd03
+1 -1
View File
@@ -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