Skip to content

Commit 87dbfd3

Browse files
committed
fix: don't schedule job when havent the time
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 809bb72 commit 87dbfd3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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)