diff --git a/api/plugins/nextbuilds/src/NextBuilds.php b/api/plugins/nextbuilds/src/NextBuilds.php index 385fb437..02fdc75a 100755 --- a/api/plugins/nextbuilds/src/NextBuilds.php +++ b/api/plugins/nextbuilds/src/NextBuilds.php @@ -110,7 +110,6 @@ function (ModelEvent $event) { $this->settings->activeSections[$entry->section->handle] && !ElementHelper::isDraftOrRevision($entry) && !($entry->duplicateOf && $entry->getIsCanonical() && !$entry->updatingFromDerivative) && - ($entry->enabled && $entry->getEnabledForSite()) && !ElementHelper::rootElement($entry)->isProvisionalDraft && !$entry->resaving ) { @@ -155,6 +154,7 @@ function (ElementStructureEvent $event) { Entry::class, Entry::EVENT_AFTER_RESTORE, function (Event $event) { + $entry = $event->sender; if ( $this->settings->activeSections[$entry->section->handle] && !ElementHelper::isDraftOrRevision($entry) && diff --git a/api/plugins/nextbuilds/src/services/Request.php b/api/plugins/nextbuilds/src/services/Request.php index b7a83406..de6bdebc 100755 --- a/api/plugins/nextbuilds/src/services/Request.php +++ b/api/plugins/nextbuilds/src/services/Request.php @@ -45,7 +45,7 @@ public function buildPagesFromEntry(Entry $entry) 'secret' => $this->getSettingsData($settings->nextSecretToken) ]; $requestUrl = $endpoint . '?' . http_build_query($params); - Craft::debug("Request URL: " .$requestUrl, "REVALIDATE_STATUS"); + Craft::info("Request URL: " .$requestUrl, "REVALIDATE_STATUS"); try { $client->request('GET', $requestUrl, []);