@dhyasama/totem-models 6.19.2 → 6.20.0

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/Deal.js +6 -0
  2. package/package.json +1 -1
package/lib/Deal.js CHANGED
@@ -159,6 +159,12 @@ module.exports = function(mongoose, config) {
159
159
 
160
160
  };
161
161
 
162
+ Deal.statics.getByIds = function (ids, cb) {
163
+ this
164
+ .find({customer: config.CUSTOMER_ID, '_id': { $in : ids } })
165
+ .exec(cb);
166
+ };
167
+
162
168
  // Get all deals belonging to a customer
163
169
  Deal.statics.getForCustomer = function (customerId, options, cb) {
164
170
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "6.19.2",
3
+ "version": "6.20.0",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",