@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.
- package/lib/Fund.js +1 -19
- 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(
|
|
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
|
|