From 388250898dcad55f4eea29b20e5e0aaf1da46f97 Mon Sep 17 00:00:00 2001 From: John Shields Date: Fri, 16 Feb 2024 16:16:15 +0000 Subject: [PATCH] PP-11681 Fix ternary if condition causing linting error during build. --- app/services/clients/webhooks.client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/services/clients/webhooks.client.js b/app/services/clients/webhooks.client.js index 6ecc724fa1..17aa92f66c 100644 --- a/app/services/clients/webhooks.client.js +++ b/app/services/clients/webhooks.client.js @@ -38,7 +38,7 @@ async function resetSigningSecret (webhookId, serviceId, gatewayAccountId, optio } async function webhooks (serviceId, gatewayAccountId, isLive, options = {}) { - const baseUrl = options.baseUrl ?? defaultRequestOptions.baseUrl + const baseUrl = options.baseUrl ? options.baseUrl : defaultRequestOptions.baseUrl const url = urlJoin(baseUrl,'/v1/webhook') this.client = new Client(defaultRequestOptions.service) const fullUrl = `${url}?service_id=${serviceId}&gateway_account_id=${gatewayAccountId}&live=${isLive}` @@ -82,7 +82,7 @@ async function createWebhook (serviceId, gatewayAccountId, isLive, options = {}) subscriptions: options.subscriptions, description: options.description } - const baseUrl = options.baseUrl ?? defaultRequestOptions.baseUrl + const baseUrl = options.baseUrl ? options.baseUrl : defaultRequestOptions.baseUrl const url = urlJoin(baseUrl,'/v1/webhook') this.client = new Client(defaultRequestOptions.service) configureClient(this.client, url)