From 665ebbea310c110f372ed439e1f794acd9632a62 Mon Sep 17 00:00:00 2001 From: Julie Date: Fri, 15 Apr 2022 16:31:05 +0200 Subject: [PATCH] send all bid info within the timeout event --- src/auction.js | 8 +------- test/spec/auctionmanager_spec.js | 2 ++ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/auction.js b/src/auction.js index ae5c3c6156b..c55334bcd3d 100644 --- a/src/auction.js +++ b/src/auction.js @@ -848,13 +848,7 @@ function groupByPlacement(bidsByPlacement, bid) { function getTimedOutBids(bidderRequests, timelyBidders) { const timedOutBids = bidderRequests .map(bid => (bid.bids || []).filter(bid => !timelyBidders.has(bid.bidder))) - .reduce(flatten, []) - .map(bid => ({ - bidId: bid.bidId, - bidder: bid.bidder, - adUnitCode: bid.adUnitCode, - auctionId: bid.auctionId, - })); + .reduce(flatten, []); return timedOutBids; } diff --git a/test/spec/auctionmanager_spec.js b/test/spec/auctionmanager_spec.js index a0435a83051..b5a4789366a 100644 --- a/test/spec/auctionmanager_spec.js +++ b/test/spec/auctionmanager_spec.js @@ -941,6 +941,8 @@ describe('auctionmanager.js', function () { const timedOutBids = bidTimeoutCall.args[1]; assert.equal(timedOutBids.length, 1); assert.equal(timedOutBids[0].bidder, BIDDER_CODE1); + // Check that additional properties are available + assert.equal(timedOutBids[0].params.placementId, 'id'); const auctionEndCall = eventsEmitSpy.withArgs(CONSTANTS.EVENTS.AUCTION_END).getCalls()[0]; const auctionProps = auctionEndCall.args[1];