Skip to content

Commit

Permalink
Welect Bid Adapter: update url of API (#6570)
Browse files Browse the repository at this point in the history
* update api url

* update api url in tests
  • Loading branch information
nduitz authored Apr 13, 2021
1 parent dc5a59c commit 37de88e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/welectBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
6 changes: 3 additions & 3 deletions test/spec/modules/welectBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 37de88e

Please sign in to comment.