@dhyasama/totem-models 9.119.0 → 9.120.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 +1 -2
  2. package/package.json +1 -1
package/lib/Deal.js CHANGED
@@ -310,7 +310,6 @@ module.exports = function(mongoose, config) {
310
310
  if (!cb) { throw new Error('cb is required'); }
311
311
  if (!deal) { return cb(new Error('deal is required'), null); }
312
312
  if (!options) { return cb(new Error('options is required'), null); }
313
- if (!options.account) { return cb(new Error('options.account is required'), null); }
314
313
 
315
314
  let getLastStage = function() {
316
315
 
@@ -337,7 +336,7 @@ module.exports = function(mongoose, config) {
337
336
 
338
337
  deal.history.push({
339
338
  timestamp: new Date(),
340
- account: options.account,
339
+ account: options.account || null,
341
340
  stage: deal.stage,
342
341
  fundraise: deal.fundraise,
343
342
  description: description
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "9.119.0",
3
+ "version": "9.120.0",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",