Refactor journal repository and fix tests.

This commit is contained in:
James Cole
2019-08-10 13:42:33 +02:00
parent b7f3c53688
commit 93f1854be0
14 changed files with 286 additions and 130 deletions

View File

@@ -90,7 +90,7 @@ class PiggyBankFactory
*/
public function findByName(string $name): ?PiggyBank
{
return $this->user->piggyBanks()->where('name', $name)->first();
return $this->user->piggyBanks()->where('piggy_banks.name', $name)->first();
}
/**