Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Commit

Permalink
fix self reference
Browse files Browse the repository at this point in the history
  • Loading branch information
AubreyHewes committed Sep 25, 2017
1 parent 872cfe5 commit b50cbfd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ Connector.prototype.getIds = function (objectType, selector, params) {
result = this.search(objectType, selector, Object.assign({ fields: '_id' }, params)).then(results => results.map(result => result._id));

if (this.cache) {
var self = this;
return result.then(function (ids) {
self.cache.getIdsCaches[objectType].set(hash, ids);
return ids;
Expand Down

0 comments on commit b50cbfd

Please sign in to comment.