Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
from20020516 committed Feb 4, 2022
1 parent 8f4f3da commit 6b38065
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/fluctAnalyticsAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,12 @@ let fluctAnalyticsAdapter = Object.assign(

/** @type {(auctionId: string) => void} */
const sendMessage = (auctionId) => {
let { adUnitCodes, adUnits, auctionEnd, aidSuffix, auctionStatus, bids } = cache.auctions[auctionId]
adUnits = Object.values(cache.adUnits).filter(adUnit => adUnitCodes.includes(adUnit.code))
let { adUnitCodes, auctionEnd, aidSuffix, auctionStatus, bids } = cache.auctions[auctionId]
const adUnits = Object.values(cache.adUnits).filter(adUnit => adUnitCodes.includes(adUnit.code))

const payload = {
auctionId: aidSuffix ? `${auctionId}_${aidSuffix}` : auctionId,
adUnits,
adUnits: adUnits.map(adUnit => ({ ...adUnit, code: adUnit._code || adUnit.code })),
bids: Object.values(bids).map(bid => {
const { noBid, prebidWon, bidWon, timeout, adId, adUnitCode, adUrl, bidder, status, netRevenue, cpm, currency, originalCpm, originalCurrency, requestId, size, source, timeToRespond } = bid
/** @type {AdUnit} */
Expand Down

0 comments on commit 6b38065

Please sign in to comment.