@dhyasama/totem-models 9.126.0 → 9.127.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.
package/lib/Deal.js CHANGED
@@ -255,8 +255,7 @@ module.exports = function(mongoose, config) {
255
255
  let self = this;
256
256
 
257
257
  if (!cb) { throw new Error('cb is required'); }
258
- if (!personId) { return cb(new Error('personId is required'), null); }
259
- if (!mongoose.Types.ObjectId.isValid(personId)) { return cb(new Error('personId is not a valid ObjectId'), null); }
258
+ if (!application) { return cb(new Error('application is required'), null); }
260
259
  if (!options) { return cb(new Error('options is required'), null); }
261
260
  if (!options.CUSTOMER_ID) { return cb(new Error('options.CUSTOMER_ID is required'), null); }
262
261
  if (!mongoose.Types.ObjectId.isValid(options.CUSTOMER_ID)) { return cb(new Error('options.CUSTOMER_ID is not a valid ObjectId'), null); }
@@ -354,6 +354,7 @@ module.exports = function(mongoose, config) {
354
354
  description: { type: String, trim: true },
355
355
  path: { type: String, trim: true },
356
356
  stage: { type: String, trim: true },
357
+ sourceType: { type: String, trim: true },
357
358
  form: [{
358
359
  _id: false,
359
360
  key: { type: String, trim: true },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "9.126.0",
3
+ "version": "9.127.0",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",