diff --git a/app/Entities/Cloudflare/AuditLogEntity.php b/app/Entities/Cloudflare/AuditLogEntity.php index e7a906e..10ff9b3 100644 --- a/app/Entities/Cloudflare/AuditLogEntity.php +++ b/app/Entities/Cloudflare/AuditLogEntity.php @@ -24,4 +24,8 @@ class AuditLogEntity extends CommonEntity $this->attributes[AuditLogModel::TITLE] = $title; } //Common Function + public function getZoneID(): string + { + return $this->attributes['zone_id']; + } } diff --git a/app/Services/Cloudflare/AuditLogService.php b/app/Services/Cloudflare/AuditLogService.php index f6f2b33..504f209 100644 --- a/app/Services/Cloudflare/AuditLogService.php +++ b/app/Services/Cloudflare/AuditLogService.php @@ -55,7 +55,7 @@ class AuditLogService extends CloudflareService { //해당 Zone을 Sync작업한다 $zone_service = new ZoneService(); - $zone_entity = $zone_service->getEntityByPK($entity->getParent()); + $zone_entity = $zone_service->getEntityByPK($entity->getZoneID()); if ($zone_entity !== null) { // $zone_entity = $zone_service->sync($entity, $zone_entity); // //해당 Zone의 Record reload작업한다