@dhyasama/totem-models 9.45.2 → 9.45.3
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 +9 -0
- package/package.json +1 -1
package/lib/Financials.js
CHANGED
|
@@ -613,6 +613,8 @@ module.exports = function(mongoose, config) {
|
|
|
613
613
|
|
|
614
614
|
financials = financials || [];
|
|
615
615
|
|
|
616
|
+
console.log('count: ' + financials.length);
|
|
617
|
+
|
|
616
618
|
let results = [];
|
|
617
619
|
|
|
618
620
|
_.each(financials, function(financial) {
|
|
@@ -633,6 +635,13 @@ module.exports = function(mongoose, config) {
|
|
|
633
635
|
const sentToQueue = stakeholder.initial.sentToQueue;
|
|
634
636
|
const conditionsMet = sendToEmail && sendOnLessThanNow && !sentOn && !sentToQueue;
|
|
635
637
|
|
|
638
|
+
console.log(' uuid: ' + snapshot.uuid);
|
|
639
|
+
console.log(' sendToEmail: ' + sendToEmail);
|
|
640
|
+
console.log(' sendOnLessThanNow: ' + sendOnLessThanNow);
|
|
641
|
+
console.log(' sentOn: ' + sentOn);
|
|
642
|
+
console.log(' sentToQueue: ' + sentToQueue);
|
|
643
|
+
console.log(' conditionsMet: ' + conditionsMet);
|
|
644
|
+
|
|
636
645
|
if (conditionsMet) {
|
|
637
646
|
|
|
638
647
|
results.push({
|