mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
fix: use first domain_status to calculate deletion date
This commit is contained in:
@@ -512,7 +512,7 @@ class Domain
|
|||||||
*/
|
*/
|
||||||
private function calculateDaysFromStatus(\DateTimeImmutable $now): ?int
|
private function calculateDaysFromStatus(\DateTimeImmutable $now): ?int
|
||||||
{
|
{
|
||||||
$lastStatus = $this->getDomainStatuses()->last();
|
$lastStatus = $this->getDomainStatuses()->first();
|
||||||
if (false === $lastStatus) {
|
if (false === $lastStatus) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user