Handle deleted account in recurrence
This commit is contained in:
parent
5c85088a23
commit
26ae669659
1 changed files with 5 additions and 0 deletions
|
|
@ -33,6 +33,11 @@ trait HasRecurrence
|
|||
}
|
||||
|
||||
$account = $this->account;
|
||||
|
||||
if (! $account) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$timezone = $account->getTimezone();
|
||||
|
||||
if (! $this->start_date || Carbon::parse($this->start_date, $timezone)->isFuture()) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue