Skip to content

Commit

Permalink
include the bid that ended the auction
Browse files Browse the repository at this point in the history
  • Loading branch information
mkendall07 committed Jul 11, 2017
1 parent fb4045b commit da637df
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/bidmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,14 +183,13 @@ exports.addBidResponse = function (adUnitCode, bid) {
// Video bids may fail if the cache is down, or there's trouble on the network.
function tryAddVideoBid(bid) {
store([bid], function(error, cacheIds) {
doCallbacksIfNeeded();

if (error) {
utils.logWarn(`Failed to save to the video cache: ${error}. Video bid must be discarded.`);
} else {
bid.videoCacheKey = cacheIds[0].uuid;
addBidToAuction(bid);
}
doCallbacksIfNeeded();
});
}
};
Expand Down

0 comments on commit da637df

Please sign in to comment.