mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
fix: do not delete watchlist on error. Fixes #61
This commit is contained in:
@@ -471,6 +471,11 @@ class Domain
|
||||
return in_array('redemption period', $this->getStatus());
|
||||
}
|
||||
|
||||
public function isPendingDelete(): bool
|
||||
{
|
||||
return in_array('pending delete', $this->getStatus()) && !in_array('redemption period', $this->getStatus());
|
||||
}
|
||||
|
||||
private function calculateDaysFromStatus($lastStatus, \DateTimeImmutable $now): ?int
|
||||
{
|
||||
if (in_array('pending delete', $lastStatus->getAddStatus()) && !$this->isRedemptionPeriod()) {
|
||||
|
||||
Reference in New Issue
Block a user