mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-08 18:58:07 +00:00
Better query. See if works.
This commit is contained in:
@@ -140,10 +140,11 @@ class BudgetRepository extends ComponentRepository implements BudgetRepositoryIn
|
|||||||
return $cache->get(); // @codeCoverageIgnore
|
return $cache->get(); // @codeCoverageIgnore
|
||||||
}
|
}
|
||||||
$data = $budget->limitrepetitions()
|
$data = $budget->limitrepetitions()
|
||||||
->where('limit_repetitions.startdate', $start)
|
->where('limit_repetitions.startdate', $start->format('Y-m-d 00:00:00'))
|
||||||
->where('limit_repetitions.enddate', $end)
|
->where('limit_repetitions.enddate', $end->format('Y-m-d 00:00:00'))
|
||||||
->first(['limit_repetitions.*']);
|
->first(['limit_repetitions.*']);
|
||||||
Log::debug('Looking for limit reps for budget #' . $budget->id . ' start [' . $start . '] and end [' . $end . '].');
|
//Log::debug('Looking for limit reps for budget #' . $budget->id . ' start [' . $start . '] and end [' . $end . '].');
|
||||||
|
//Log::debug(DB::getQueryLog())
|
||||||
$cache->store($data);
|
$cache->store($data);
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
|
|||||||
Reference in New Issue
Block a user