Tested part of the journal repository.

This commit is contained in:
James Cole
2015-05-09 18:11:48 +02:00
parent 84e8e007a5
commit 10e54b2263
2 changed files with 95 additions and 50 deletions

View File

@@ -137,7 +137,7 @@ class JournalRepository implements JournalRepositoryInterface
*/
public function getWithDate($id, Carbon $date)
{
return Auth::user()->transactionjournals()->where('id', $id)->where('date', $date->format('Y-m-d'))->first();
return Auth::user()->transactionjournals()->where('id', $id)->where('date', $date->format('Y-m-d 00:00:00'))->first();
}
/**