Skip to content

Commit

Permalink
includes fix
Browse files Browse the repository at this point in the history
  • Loading branch information
FilipWitkowski-RTBHouse committed May 10, 2021
1 parent 950ac9b commit b9042c3
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions modules/rtbhouseBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ function applyFloor(slot) {
const floors = [];
if (typeof slot.getFloor === 'function') {
Object.keys(slot.mediaTypes).forEach(type => {
if (SUPPORTED_MEDIA_TYPES.includes(type)) {
if (includes(SUPPORTED_MEDIA_TYPES, type)) {
floors.push(slot.getFloor({ currency: DEFAULT_CURRENCY_ARR[0], mediaType: type, size: slot.sizes || '*' }).floor);
}
});
Expand Down Expand Up @@ -331,9 +331,6 @@ function interpretBannerBid(serverBid) {
width: serverBid.w,
height: serverBid.h,
ttl: TTL,
meta: {
advertiserDomains: serverBid.adomain
},
netRevenue: true,
currency: 'USD'
}
Expand All @@ -352,9 +349,6 @@ function interpretNativeBid(serverBid) {
width: 1,
height: 1,
ttl: TTL,
meta: {
advertiserDomains: serverBid.adomain
},
netRevenue: true,
currency: 'USD',
native: interpretNativeAd(serverBid.adm),
Expand Down

0 comments on commit b9042c3

Please sign in to comment.