Update remember months
continuous-integration/drone/push Build is passing Details

This commit is contained in:
philipp lang 2022-02-10 01:05:37 +01:00
parent f35a65addb
commit 61b0b8708c
1 changed files with 1 additions and 1 deletions

View File

@ -49,6 +49,6 @@ class Payment extends Model
{ {
return $q->whereHas('status', function($q) { return $q->whereHas('status', function($q) {
return $q->where('is_remember', true); return $q->where('is_remember', true);
})->where(fn ($query) => $query->whereNull('last_remembered_at')->orWhere('last_remembered_at', '<=', now()->subMonths(6))); })->where(fn ($query) => $query->whereNull('last_remembered_at')->orWhere('last_remembered_at', '<=', now()->subMonths(3)));
} }
} }