@dhyasama/totem-models 5.1.3 → 5.1.5

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/Deal.js +2 -5
  2. package/package.json +1 -1
package/lib/Deal.js CHANGED
@@ -33,10 +33,7 @@ module.exports = function(mongoose, config) {
33
33
  fundraise: {
34
34
  amount: { type: Number, default: 0 },
35
35
  valuation: { type: Number, default: 0 },
36
- details: [{
37
- key: { type: String, trim: true, required: true },
38
- value: { type: String, trim: true, required: true },
39
- }]
36
+ details: { type: String, trim: true }
40
37
  },
41
38
 
42
39
  resources: [{
@@ -128,7 +125,7 @@ module.exports = function(mongoose, config) {
128
125
 
129
126
  self
130
127
  .find({ 'customer': customerId })
131
- .populate('organization', 'name logoUrl website websiteAliases')
128
+ .populate('organization', 'name description logoUrl website websiteAliases')
132
129
  .populate('messages')
133
130
  .populate('sources.person', 'name avatarUrl')
134
131
  .populate({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "5.1.3",
3
+ "version": "5.1.5",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",