@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 +1 -2
- package/lib/Organization.js +1 -0
- package/package.json +1 -1
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 (!
|
|
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); }
|
package/lib/Organization.js
CHANGED
|
@@ -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 },
|