@dhyasama/totem-models 10.20.0 → 10.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/Fund.js +1 -19
  2. package/package.json +1 -1
package/lib/Fund.js CHANGED
@@ -162,14 +162,6 @@ module.exports = function(mongoose, config) {
162
162
  }
163
163
  }
164
164
  ],
165
- must: [
166
- {
167
- equals: {
168
- path: 'customer',
169
- value: mongoose.Types.ObjectId(options.CUSTOMER_ID)
170
- }
171
- }
172
- ],
173
165
  minimumShouldMatch: 1
174
166
  }
175
167
  }
@@ -183,17 +175,7 @@ module.exports = function(mongoose, config) {
183
175
  score: { $meta: "searchScore" }
184
176
  }
185
177
  }
186
- ]).exec(function(err, orgs) {
187
-
188
- if (err) { return cb(err, null); }
189
-
190
- orgs = _.map(orgs, function(org) {
191
- return helpers.cleanOrg(org, options.CUSTOMER_ID);
192
- });
193
-
194
- return cb(null, orgs);
195
-
196
- });
178
+ ]).exec(cb);
197
179
 
198
180
  };
199
181
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "10.20.0",
3
+ "version": "10.20.1",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",