fix: use first domain_status to calculate deletion date

This commit is contained in:
Maël Gangloff
2025-10-22 14:58:02 +02:00
parent 444ad7bd20
commit 9f71013c8e

View File

@@ -512,7 +512,7 @@ class Domain
*/
private function calculateDaysFromStatus(\DateTimeImmutable $now): ?int
{
$lastStatus = $this->getDomainStatuses()->last();
$lastStatus = $this->getDomainStatuses()->first();
if (false === $lastStatus) {
return null;
}