Skip to content

Commit

Permalink
PP-11681 Fix ternary if condition causing linting error during build.
Browse files Browse the repository at this point in the history
  • Loading branch information
JFSGDS committed Feb 28, 2024
1 parent 8188ed5 commit 3882508
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/services/clients/webhooks.client.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 3882508

Please sign in to comment.