@dhyasama/totem-models 12.18.0 → 12.19.0

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/Meeting.js +4 -4
  2. package/package.json +1 -1
package/lib/Meeting.js CHANGED
@@ -64,7 +64,7 @@ module.exports = function(mongoose, config) {
64
64
  let query = this.findOne({ '_id': id, customer: options.CUSTOMER_ID });
65
65
  if (options.populate === true) { query.populate({ path: 'people', select: 'name title avatarUrl doNotDisplay' }); }
66
66
 
67
- const result = await query.lean();
67
+ const result = await query.lean({ virtuals: true });
68
68
  return result;
69
69
  };
70
70
 
@@ -84,7 +84,7 @@ module.exports = function(mongoose, config) {
84
84
  let query = this.find({ 'eventId': eventId, customer: options.CUSTOMER_ID });
85
85
  if (options.populate === true) { query.populate({ path: 'people', select: 'name title avatarUrl doNotDisplay' }); }
86
86
 
87
- const result = await query.lean();
87
+ const result = await query.lean({ virtuals: true });
88
88
  return result;
89
89
  };
90
90
 
@@ -104,7 +104,7 @@ module.exports = function(mongoose, config) {
104
104
  let query = this.findOne({ 'uniqueId': uniqueId, customer: options.CUSTOMER_ID });
105
105
  if (options.populate === true) { query.populate({ path: 'people', select: 'name title avatarUrl doNotDisplay' }); }
106
106
 
107
- const result = await query.lean();
107
+ const result = await query.lean({ virtuals: true });
108
108
  return result;
109
109
  };
110
110
 
@@ -139,7 +139,7 @@ module.exports = function(mongoose, config) {
139
139
 
140
140
  if (options.populate === true) { query.populate({ path: 'people', select: 'name title avatarUrl doNotDisplay' }); }
141
141
 
142
- const result = await query.lean();
142
+ const result = await query.lean({ virtuals: true });
143
143
  return result;
144
144
  };
145
145
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "12.18.0",
3
+ "version": "12.19.0",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",