@dhyasama/totem-models 11.80.0 → 11.81.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.
- package/lib/Organization.js +4 -0
- package/package.json +1 -1
package/lib/Organization.js
CHANGED
|
@@ -1753,6 +1753,10 @@ module.exports = function(mongoose, config) {
|
|
|
1753
1753
|
customer: customerId,
|
|
1754
1754
|
createdOn: { $gte: startDate, $lte: endDate }
|
|
1755
1755
|
},
|
|
1756
|
+
populate: {
|
|
1757
|
+
path: 'createdBy',
|
|
1758
|
+
select: 'name avatarUrl'
|
|
1759
|
+
}
|
|
1756
1760
|
})
|
|
1757
1761
|
|
|
1758
1762
|
query.exec(function(err, result) {
|