Skip to content

Commit 778c6f2

Browse files
committed
fix: don't schedule job when havent the time
Signed-off-by: Vitor Mattos <[email protected]>
1 parent dda5fd1 commit 778c6f2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/Service/ReminderService.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ protected function scheduleJob(string $startTime): ?DateTime {
118118
Reminder::class,
119119
);
120120

121+
if ($startTime === '') {
122+
return null;
123+
}
121124
$runAfter = $this->getStartTime($startTime);
122125
if (!$runAfter) {
123126
return null;

0 commit comments

Comments
 (0)