fix: domain setDeleted false

This commit is contained in:
Maël Gangloff
2025-01-29 20:43:26 +01:00
parent d103afea42
commit e44866cfe2
2 changed files with 5 additions and 1 deletions

View File

@@ -560,6 +560,10 @@ class Domain
#[Groups(['domain:item', 'domain:list'])]
public function getExpiresInDays(): ?int
{
if ($this->getDeleted()) {
return null;
}
$now = new \DateTimeImmutable();
[$expiredAt, $deletedAt] = $this->getRelevantDates();