lib/replayHandler.js
function (revisionMap, callback) {
    var self = this;
    var ids = _.keys(revisionMap);
    async.each(ids, function (id, callback) {
      self.store.get(id, function (err, rev) {
        if (err) {
          return callback(err);
        }
        self.store.set(id, revisionMap[id] + 1, rev, callback);
      });
    }, callback);
  }
function (revisionMap, callback) {
    var self = this;
    var ids = _.keys(revisionMap);
    async.each(ids, function (id, callback) {
      self.store.get(id, function (err, rev) {
        if (err) {
          return callback(err);
        }
        self.store.set(id, revisionMap[id] + 1, rev, callback);
      });
    }, callback);
  }
function ( revisionMap , callback ) { var self = this ; var ids = _ . keys ( revisionMap ) ; async . each ( ids , function ( id , callback ) { self . store . get ( id , function ( err , rev ) { if ( err ) { return callback ( err ) ; } self . store . set ( id , revisionMap [ id ] + 1 , rev , callback ) ; } ) ; } , callback ) ; }
Updates the revision in the store.
@param {Object}   revisionMap The revision map.
@param {Function} callback    The function, that will be called when this action is completed.
`function(err){}`
Updates the revision in the store .