@dhyasama/totem-models 1.17.7 → 1.18.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/Account.js CHANGED
@@ -76,7 +76,8 @@ module.exports = function(mongoose, config) {
76
76
  refreshToken: { type: String, default: '' },
77
77
  params: { type: Schema.Types.Mixed },
78
78
  profile: { type: Schema.Types.Mixed },
79
- watch: { type: Schema.Types.Mixed }
79
+ watch: { type: Schema.Types.Mixed },
80
+ deltaLink: { type: String, default: null }
80
81
  }
81
82
 
82
83
  },
@@ -590,6 +590,16 @@ module.exports = function(mongoose, config) {
590
590
  .exec(cb);
591
591
  };
592
592
 
593
+ Organization.statics.findByIdsUnpopulated = function findByIdsUnpopulated(ids, cb) {
594
+
595
+ var self = this;
596
+
597
+ self
598
+ .find({ '_id': { $in : ids }})
599
+ .exec(cb);
600
+
601
+ };
602
+
593
603
  Organization.statics.findByIds = function findByIds(ids, cb) {
594
604
 
595
605
  var self = this;
package/lib/Round.js CHANGED
@@ -138,7 +138,7 @@ module.exports = function(mongoose, config) {
138
138
  logoUrl: rounds[0].organization.logoUrl,
139
139
  description: rounds[0].organization.description,
140
140
  contact: rounds[0].organization.contact,
141
- industries: rounds[0].organization.industries,
141
+ filters: rounds[0].organization.filters,
142
142
  status: rounds[0].organization.status,
143
143
  preMoneyValuation: rounds[0].preMoneyValuation
144
144
  };
@@ -544,7 +544,7 @@ module.exports = function(mongoose, config) {
544
544
 
545
545
  var query = self.find({ 'vehicles.fund': fundId });
546
546
  query.select('organization vehicles preMoneyValuation');
547
- query.populate('organization', 'name logoUrl description contact industries status ipo closed acquired operating');
547
+ query.populate('organization', 'name logoUrl description contact filters status ipo closed acquired operating');
548
548
  query.populate('vehicles.fund');
549
549
 
550
550
  if (config.CUSTOMER_ID == 'GLOBAL_PROCESS') {
@@ -580,7 +580,7 @@ module.exports = function(mongoose, config) {
580
580
 
581
581
  var query = self.find({ 'vehicles.fund': { $in: fundIds } });
582
582
  query.select('organization vehicles preMoneyValuation');
583
- query.populate('organization', 'name logoUrl description contact industries status ipo closed acquired operating');
583
+ query.populate('organization', 'name logoUrl description contact filters status ipo closed acquired operating');
584
584
  query.populate('vehicles.fund');
585
585
 
586
586
  if (config.CUSTOMER_ID == 'GLOBAL_PROCESS') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "1.17.7",
3
+ "version": "1.18.1",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",