mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-05 12:12:18 +00:00
Fixes the tests.
This commit is contained in:
@@ -19,10 +19,14 @@ class EloquentLimitTrigger
|
||||
*/
|
||||
public function checkRepeatingLimits()
|
||||
{
|
||||
$limits = \Limit::leftJoin('components', 'components.id', '=', 'limits.component_id')
|
||||
->where('components.user_id', \Auth::user()->id)
|
||||
->where('limits.repeats', 1)
|
||||
->get(['limits.*']);
|
||||
if (\Auth::check()) {
|
||||
$limits = \Limit::leftJoin('components', 'components.id', '=', 'limits.component_id')
|
||||
->where('components.user_id', \Auth::user()->id)
|
||||
->where('limits.repeats', 1)
|
||||
->get(['limits.*']);
|
||||
} else {
|
||||
$limits = [];
|
||||
}
|
||||
|
||||
/** @var \Limit $limit */
|
||||
foreach ($limits as $limit) {
|
||||
|
Reference in New Issue
Block a user