From 222eba82eb219a167dfba8532dc22ce29b0cf84e Mon Sep 17 00:00:00 2001 From: rayangler <27821750+rayangler@users.noreply.github.com> Date: Thu, 29 Feb 2024 16:22:00 -0500 Subject: [PATCH] Wrong safeguard :P --- src/job/jobHandler.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/job/jobHandler.ts b/src/job/jobHandler.ts index 804daa40f..68d65bf65 100644 --- a/src/job/jobHandler.ts +++ b/src/job/jobHandler.ts @@ -359,13 +359,8 @@ export abstract class JobHandler { // Call Gatsby Cloud preview webhook after persistence module finishes for staging builds const isFeaturePreviewWebhookEnabled = process.env.GATSBY_CLOUD_PREVIEW_WEBHOOK_ENABLED?.toLowerCase() === 'true'; - if ( - key === 'persistence-module' && - // TEMP-4353: Remove this after testing - // this.name === 'Staging' && - isFeaturePreviewWebhookEnabled && - process.env.IS_FEATURE_BRANCH !== 'true' - ) { + // TEMP-4353: Restore stg safeguard after done testing + if (key === 'persistence-module' && this.name === 'Staging' && isFeaturePreviewWebhookEnabled) { await this.callGatsbyCloudWebhook(); await this.callNetlifyWebhook(); }