diff --git a/lib/analytics/event.js b/lib/analytics/event.js index 5fcbb60..4c76ac1 100644 --- a/lib/analytics/event.js +++ b/lib/analytics/event.js @@ -36,6 +36,7 @@ exports.putterInit = function (db, options) { return; } eventsToSave = eventsToSave.concat(events); + events=[]; } if ((eventsToSave.length > bufferSize) || (new Date().getTime() - bufferTimestamp > 100 && eventsToSave.length > 0)) { insertedDocs = eventsToSave.splice(0, bufferSize);