Skip to content

Commit 7cc0c8a

Browse files
committed
fix: don't notify when haven't interval
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent c591884 commit 7cc0c8a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/Service/ReminderService.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,10 @@ protected function willNotify(array $summarized, \DateTime $now, int $daysBefore
184184
return false;
185185
}
186186

187+
if ($daysBetween === 0) {
188+
return false;
189+
}
190+
187191
if ($summarized['total'] === 1) {
188192
return $this->shouldNotifyAfterSomeDays($summarized['first'], $now, $daysBefore);
189193
}

0 commit comments

Comments
 (0)