Skip to content

Commit

Permalink
only count not sent ones duh
Browse files Browse the repository at this point in the history
  • Loading branch information
robertrmartinez committed Jan 19, 2023
1 parent 05fbb3f commit d92a584
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/magniteAnalyticsAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ magniteAdapter.onDataDeletionRequest = function () {

// send a beacon to see how many times this happens
window.addEventListener("beforeunload", function () {
const pendingAuctions = Object.keys(cache.auctions).length;
const pendingAuctions = Object.keys(cache.auctions).filter(aid => !cache.auctions[aid].sent).length;
const pendingEvents = Object.keys(cache.pendingEvents).length && Object.keys(cache.pendingEvents).reduce((accum, eventName) => {
accum[eventName] = cache.pendingEvents[eventName].length;
return accum;
Expand Down

0 comments on commit d92a584

Please sign in to comment.