@dhyasama/totem-models 8.7.0 → 8.7.1
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/Round.js +12 -6
- package/package.json +1 -1
package/lib/Round.js
CHANGED
|
@@ -672,9 +672,12 @@ module.exports = function(mongoose, config) {
|
|
|
672
672
|
let error = checkForUnpopulatedData(rounds, 'Round.getPortfolioByFund');
|
|
673
673
|
if (error) return cb(error, null);
|
|
674
674
|
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
675
|
+
if (!options.isWorkerProcess) {
|
|
676
|
+
_.each(rounds, function(round) {
|
|
677
|
+
round.organization = helpers.cleanOrg(round.organization, options.CUSTOMER_ID);
|
|
678
|
+
if(round.organization.filters) console.log(round.organization.filters.toObject());
|
|
679
|
+
});
|
|
680
|
+
}
|
|
678
681
|
|
|
679
682
|
return cb(null, buildPortfolio(rounds, [fundId]));
|
|
680
683
|
|
|
@@ -733,9 +736,12 @@ module.exports = function(mongoose, config) {
|
|
|
733
736
|
let error = checkForUnpopulatedData(rounds, 'Round.getPortfolioByFunds');
|
|
734
737
|
if (error) return cb(error, null);
|
|
735
738
|
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
+
if (!options.isWorkerProcess) {
|
|
740
|
+
_.each(rounds, function(round) {
|
|
741
|
+
round.organization = helpers.cleanOrg(round.organization, options.CUSTOMER_ID);
|
|
742
|
+
if(round.organization.filters) console.log(round.organization.filters.toObject());
|
|
743
|
+
});
|
|
744
|
+
}
|
|
739
745
|
|
|
740
746
|
return cb(null, buildPortfolio(rounds, fundIds));
|
|
741
747
|
|