'use strict'

class EventIndex {
  get() {
    return this._index
  }

  updateIndex(oplog) {
    this._index = oplog.items
  }
}

module.exports = EventIndex

'use strict'

class EventIndex {
  constructor() {
    this._index = []
  }

  get() {
    return this._index
  }

  updateIndex(oplog) {
    this._index = oplog.items
  }
}

module.exports = EventIndex

Make sure there's always an index
Make sure there's always an index
