fix: intensify on last day

This commit is contained in:
Maël Gangloff
2025-04-06 15:25:38 +02:00
parent 2a47d351b8
commit c940fba01a
5 changed files with 10 additions and 13 deletions

View File

@@ -379,7 +379,7 @@ class Domain
*
* @throws \Exception
*/
public function isToBeUpdated(bool $fromUser = true): bool
public function isToBeUpdated(bool $fromUser = true, bool $intensifyLastDay = false): bool
{
$updatedAtDiff = $this->getUpdatedAt()->diff(new \DateTimeImmutable());
@@ -393,7 +393,7 @@ class Domain
$expiresIn = $this->getExpiresInDays();
if (0 === $expiresIn || 1 === $expiresIn) {
if ($intensifyLastDay && (0 === $expiresIn || 1 === $expiresIn)) {
return true;
}