From 37de88ea3cf7da9dbb1c5eff95e60534158b376f Mon Sep 17 00:00:00 2001 From: Nick Duitz <42961155+nduitz@users.noreply.github.com> Date: Tue, 13 Apr 2021 10:39:54 +0200 Subject: [PATCH] Welect Bid Adapter: update url of API (#6570) * update api url * update api url in tests --- modules/welectBidAdapter.js | 2 +- test/spec/modules/welectBidAdapter_spec.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/welectBidAdapter.js b/modules/welectBidAdapter.js index f9fc57a4834..467b628c944 100644 --- a/modules/welectBidAdapter.js +++ b/modules/welectBidAdapter.js @@ -38,7 +38,7 @@ export const spec = { let domain = bidRequest.params.domain || DEFAULT_DOMAIN; - let url = `https://${domain}/api/v2/preflight/by_alias/${bidRequest.params.placementId}`; + let url = `https://${domain}/api/v2/preflight/${bidRequest.params.placementId}`; let gdprConsent = null; diff --git a/test/spec/modules/welectBidAdapter_spec.js b/test/spec/modules/welectBidAdapter_spec.js index 5f047904c76..571f68038ac 100644 --- a/test/spec/modules/welectBidAdapter_spec.js +++ b/test/spec/modules/welectBidAdapter_spec.js @@ -103,7 +103,7 @@ describe('WelectAdapter', function () { // Formatted requets let request1 = { method: 'POST', - url: 'https://www.welect.de/api/v2/preflight/by_alias/exampleAlias', + url: 'https://www.welect.de/api/v2/preflight/exampleAlias', data: data1, options: { contentType: 'application/json', @@ -114,7 +114,7 @@ describe('WelectAdapter', function () { let request2 = { method: 'POST', - url: 'https://www.welect2.de/api/v2/preflight/by_alias/exampleAlias', + url: 'https://www.welect2.de/api/v2/preflight/exampleAlias', data: data2, options: { contentType: 'application/json', @@ -171,7 +171,7 @@ describe('WelectAdapter', function () { } }, method: 'POST', - url: 'https://www.welect.de/api/v2/preflight/by_alias/exampleAlias', + url: 'https://www.welect.de/api/v2/preflight/exampleAlias', options: { contentType: 'application/json', withCredentials: false,