diff --git a/app/Services/Cloudflare/ZoneService.php b/app/Services/Cloudflare/ZoneService.php index b6e4227..b436c13 100644 --- a/app/Services/Cloudflare/ZoneService.php +++ b/app/Services/Cloudflare/ZoneService.php @@ -160,7 +160,7 @@ class ZoneService extends CloudflareService } public function expire(AccountEntity $parent_entity, ZoneEntity $entity): ZoneEntity { - $endpoint = "accounts/{$parent_entity->getPK()}/registrar/domains/{$entity->getTitle()}"; + $endpoint = "accounts/{$entity->getParent()}/registrar/domains/{$entity->getTitle()}"; log_message("debug", $endpoint); $this->setParentEntity($parent_entity); $response = $this->getMySocket()->get($endpoint);