Permalink
Browse files

set id correctly in mongoDb

  • Loading branch information...
1 parent 15fd06e commit 93b7947da1a26a722d31856a0cb39807d84fc7d2 Adriano Raiano committed May 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 storage/mongoDb/storage.js
@@ -88,7 +88,7 @@ Storage.prototype = {
// - __callback:__ `function(err){}`
addEvents: function(events, callback) {
for(var i in events) {
- events[i]._id = events[i].commitId;
+ events[i]._id = events[i].commitId + events[i].commitSequence;
}
this.events.insert(events, {keepGoing: true}, callback);
},

0 comments on commit 93b7947

Please sign in to comment.