@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.
- package/lib/Financials.js +3 -15
- 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':
|
|
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':
|
|
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':
|
|
437
|
+
'customer': snapshot.customer,
|
|
450
438
|
'organization': snapshot.organization
|
|
451
439
|
});
|
|
452
440
|
|