@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.
Files changed (2) hide show
  1. package/lib/Round.js +12 -6
  2. 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
- _.each(rounds, function(round) {
676
- round.organization = helpers.cleanOrg(round.organization, options.CUSTOMER_ID);
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
- _.each(rounds, function(round) {
737
- round.organization = helpers.cleanOrg(round.organization, options.CUSTOMER_ID);
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "8.7.0",
3
+ "version": "8.7.1",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",