mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-06 12:45:30 +00:00
Code optimizations.
This commit is contained in:
@@ -83,7 +83,8 @@ class BudgetController extends Controller
|
||||
*/
|
||||
public function budget(Budget $budget): JsonResponse
|
||||
{
|
||||
$start = $this->repository->firstUseDate($budget);
|
||||
/** @var Carbon $start */
|
||||
$start = $this->repository->firstUseDate($budget) ?? session('start', new Carbon);
|
||||
/** @var Carbon $end */
|
||||
$end = session('end', new Carbon);
|
||||
$cache = new CacheProperties();
|
||||
|
Reference in New Issue
Block a user