@dhyasama/totem-models 8.31.0 → 8.31.2

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/Financials.js +3 -15
  2. package/package.json +1 -1
package/lib/Financials.js CHANGED
@@ -311,13 +311,9 @@ module.exports = function(mongoose, config) {
311
311
 
312
312
  if(hasRecipients && hasUnsentSendOnLessThanNow) {
313
313
 
314
- var recipients = snapshot.notifications.company.sendTo.map(function(sendTo) {
315
- return sendTo.email;
316
- }).join(',');
317
-
318
314
  results.push({
319
315
  'snapshot': snapshot,
320
- 'customer': snapsot.customer,
316
+ 'customer': snapshot.customer,
321
317
  'organization': snapshot.organization
322
318
  });
323
319
 
@@ -379,13 +375,9 @@ module.exports = function(mongoose, config) {
379
375
 
380
376
  if(hasRecipients && hasUnsentSendOnLessThanNow && ((!hasBeenSubmitted) || (hasBeenSubmitted && hasBeenRejected))) {
381
377
 
382
- var recipients = snapshot.notifications.company.sendTo.map(function(sendTo) {
383
- return sendTo.email;
384
- }).join(',');
385
-
386
378
  results.push({
387
379
  'snapshot': snapshot,
388
- 'customer': snapsot.customer,
380
+ 'customer': snapshot.customer,
389
381
  'organization': snapshot.organization
390
382
  });
391
383
 
@@ -440,13 +432,9 @@ module.exports = function(mongoose, config) {
440
432
 
441
433
  if(hasRecipients && hasUnsentSendOnLessThanNow && hasBeenSubmitted && hasBeenRejected) {
442
434
 
443
- var recipients = snapshot.notifications.company.sendTo.map(function(sendTo) {
444
- return sendTo.email;
445
- }).join(',');
446
-
447
435
  results.push({
448
436
  'snapshot': snapshot,
449
- 'customer': snapsot.customer,
437
+ 'customer': snapshot.customer,
450
438
  'organization': snapshot.organization
451
439
  });
452
440
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "8.31.0",
3
+ "version": "8.31.2",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",