mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-18 07:38:29 +00:00
Code cleanup
This commit is contained in:
@@ -89,9 +89,9 @@ class CreateExport extends Command
|
||||
$accountRepository->setUser($user);
|
||||
|
||||
// first date
|
||||
$firstJournal = $journalRepository->first();
|
||||
$firstJournal = $journalRepository->firstNull();
|
||||
$first = new Carbon;
|
||||
if (null !== $firstJournal->id) {
|
||||
if (null !== $firstJournal) {
|
||||
$first = $firstJournal->date;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user