Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Welect Bid Adapter: update url of API #6570

Merged
merged 2 commits into from
Apr 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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