Skip to content

Commit 3ea06ac

Browse files
committed
Filter out myself when saving
1 parent 56b0d26 commit 3ea06ac

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Models/MailatorSchedule.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,10 @@ public function shouldSend(): bool
374374

375375
public function executeWhenPasses(bool $now = false): void
376376
{
377+
if (! $this->save()) {
378+
return;
379+
}
380+
377381
if ($this->shouldSend()) {
378382
$this->execute($now);
379383
}

0 commit comments

Comments
 (0)