diff --git a/app/Models/Account.php b/app/Models/Account.php index b27944737c..42f628b1bc 100644 --- a/app/Models/Account.php +++ b/app/Models/Account.php @@ -121,31 +121,6 @@ class Account extends Model } - /** - * @param array $fields - * - * @return Account|null - */ - public static function firstOrNullEncrypted(array $fields) - { - // everything but the name: - $query = Account::orderBy('id'); - $search = $fields; - unset($search['name']); - foreach ($search as $name => $value) { - $query->where($name, $value); - } - $set = $query->get(['accounts.*']); - /** @var Account $account */ - foreach ($set as $account) { - if ($account->name == $fields['name']) { - return $account; - } - } - - return null; - } - /** * @param Account $value * diff --git a/app/Repositories/Account/AccountTasker.php b/app/Repositories/Account/AccountTasker.php new file mode 100644 index 0000000000..6339e12290 --- /dev/null +++ b/app/Repositories/Account/AccountTasker.php @@ -0,0 +1,24 @@ +