From 0a7868b3fa837ee825a3b3760452d94b627ce105 Mon Sep 17 00:00:00 2001 From: Alisha Evans Date: Mon, 4 Mar 2024 14:29:49 -0600 Subject: [PATCH] application specific webhook names webhooks are tied to a specific client application on the scientist.com marketplace. currently, they're all titled "webstore", which means a user can have multiple webhooks that are named the same, but refer to different applications. this change makes each webhook name unique by referencing the name of the client application. - related: https://github.com/assaydepot/rx/issues/25317 --- utils/api/webhooks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/api/webhooks.js b/utils/api/webhooks.js index 6ec37f3..dd7a0c7 100644 --- a/utils/api/webhooks.js +++ b/utils/api/webhooks.js @@ -11,7 +11,7 @@ export const getWebhookConfig = async (accessToken) => { export const createWebhookConfig = (accessToken) => { /* eslint-disable camelcase */ const webhook_config = { - 'name': 'Webstore', + 'name': `${process.env.NEXT_PUBLIC_PROVIDER_NAME} DS`, 'url': `${process.env.NEXT_PUBLIC_WEBHOOK_URL}`, 'active': true, 'params': {