Skip to content

Commit aeeb20a

Browse files
committed
Immediate condition.
1 parent fea7726 commit aeeb20a

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
@@ -493,6 +493,10 @@ public function getReadableConditionAttribute(): string
493493
$condition = $this->delay_minutes.' minute(s) ';
494494
}
495495

496+
if ($this->delay_minutes < 1) {
497+
return (string) __('immediate');
498+
}
499+
496500
$condition .= $this->time_frame_origin." ".$this->timestamp_target?->copy()->format('m/d/Y h:i A');
497501

498502
return $condition;

0 commit comments

Comments
 (0)