mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-02 03:02:18 +00:00
Refactor findNull to find
This commit is contained in:
@@ -104,8 +104,8 @@ class UpdateRequest extends FormRequest
|
||||
|
||||
$inwardId = $data['inward_id'] ?? $existing->source_id;
|
||||
$outwardId = $data['outward_id'] ?? $existing->destination_id;
|
||||
$inward = $journalRepos->findNull((int)$inwardId);
|
||||
$outward = $journalRepos->findNull((int)$outwardId);
|
||||
$inward = $journalRepos->find((int)$inwardId);
|
||||
$outward = $journalRepos->find((int)$outwardId);
|
||||
if (null === $inward) {
|
||||
$inward = $existing->source;
|
||||
}
|
||||
|
Reference in New Issue
Block a user