includes/spoolchanges.js
function(c) {
    if (c) {
      if (c.error) {
        ee.emit('error', new error.BackupError('InvalidChange', `Received invalid change: ${c}`));
      } else if (c.changes) {
        var obj = { id: c.id };
        buffer.push(obj);
        processBuffer(false);
      } else if (c.last_seq) {
        lastSeq = c.last_seq;
      }
    }
  }
function(c) {
    if (c) {
      if (c.error) {
        ee.emit('error', new error.BackupError('InvalidChange', `Received invalid change: ${c}`));
      } else if (c.changes) {
        var obj = { id: c.id };
        buffer.push(obj);
        processBuffer(false);
      } else if (c.last_seq) {
        lastSeq = c.last_seq;
      }
    }
  }
function ( c ) { if ( c ) { if ( c . error ) { ee . emit ( 'error' , new error . BackupError ( 'InvalidChange' , ` ${ c } ` ) ) ; } else if ( c . changes ) { var obj = { id : c . id } ; buffer . push ( obj ) ; processBuffer ( false ) ; } else if ( c . last_seq ) { lastSeq = c . last_seq ; } } }
called once per received change
called once per received change