Rename Index#itemsByHash to Index#items.
This commit is contained in:
parent
aebd9319f5
commit
cd582e2e3a
@ -192,7 +192,7 @@ export default class Collection extends EventEmitter {
|
||||
throw new DuplicateIndex(name)
|
||||
}
|
||||
indexes[name] = index
|
||||
this._indexedItems[name] = index.itemsByHash
|
||||
this._indexedItems[name] = index.items
|
||||
}
|
||||
|
||||
deleteIndex (name) {
|
||||
|
@ -35,7 +35,7 @@ export default class Index {
|
||||
|
||||
// -----------------------------------------------------------------
|
||||
|
||||
get itemsByHash () {
|
||||
get items () {
|
||||
return this._itemsByHash
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user