@dhyasama/totem-models 5.1.2 → 5.1.3

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/Deal.js CHANGED
@@ -45,7 +45,7 @@ module.exports = function(mongoose, config) {
45
45
  }],
46
46
 
47
47
  history: [{
48
- timestamp: { type: String, required: true },
48
+ timestamp: { type: Date, required: true, default: Date.now },
49
49
  account: { type: Schema.ObjectId, ref: 'Account', required: true },
50
50
  stage: { type: String, required: true },
51
51
  description: { type: String, trim: true, required: true }
@@ -128,13 +128,13 @@ module.exports = function(mongoose, config) {
128
128
 
129
129
  self
130
130
  .find({ 'customer': customerId })
131
- // .populate('organization', 'name logoUrl website websiteAliases')
132
- // .populate('messages')
133
- // .populate('sources.person', 'name avatarUrl')
134
- // .populate({
135
- // path: 'documents',
136
- // match: { customer: customerId }
137
- // })
131
+ .populate('organization', 'name logoUrl website websiteAliases')
132
+ .populate('messages')
133
+ .populate('sources.person', 'name avatarUrl')
134
+ .populate({
135
+ path: 'documents',
136
+ match: { customer: customerId }
137
+ })
138
138
  .exec(cb);
139
139
 
140
140
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "5.1.2",
3
+ "version": "5.1.3",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",
package/.npmignore DELETED
@@ -1,14 +0,0 @@
1
- lib-cov
2
- *.seed
3
- *.log
4
- *.csv
5
- *.dat
6
- *.out
7
- *.pid
8
- *.gz
9
-
10
- npm-debug.log
11
- node_modules
12
-
13
- .DS_Store
14
- .idea