@dhyasama/totem-models 11.99.0 → 11.100.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 +5 -15
  2. package/package.json +1 -1
package/lib/Meeting.js CHANGED
@@ -16,24 +16,18 @@ module.exports = function(mongoose, config) {
16
16
 
17
17
  summary: { type: String, index: false, required: true },
18
18
 
19
- start: { type: Date, index: false, required: true },
19
+ startOn: { type: Date, index: false, required: true },
20
20
 
21
- end: { type: Date, index: false, required: true },
21
+ endOn: { type: Date, index: false, required: true },
22
22
 
23
23
  recurring: { type: Boolean, default: false },
24
24
 
25
- attendees: [{
26
-
27
- email: { type: String, index: true, required: true },
28
-
29
- name: { type: String, index: true, required: true }
30
-
31
- }],
32
-
33
25
  createdOn: { type: Date, index: false, required: true },
34
26
 
35
27
  updatedOn: { type: Date, index: false, required: true },
36
28
 
29
+ people: [{ type: Schema.ObjectId, ref: 'Person', index: true }],
30
+
37
31
  raw: { type: String, index: false, required: true },
38
32
 
39
33
  notes: { type: String, trim: true },
@@ -95,13 +89,9 @@ module.exports = function(mongoose, config) {
95
89
  };
96
90
 
97
91
  Meeting.statics.delete = function(meetingId, cb) {
98
-
99
- var self = this;
100
-
101
- self
92
+ this
102
93
  .findByIdAndRemove(meetingId)
103
94
  .exec(cb);
104
-
105
95
  };
106
96
 
107
97
  Meeting.statics.upsert = function(meeting, cb) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "11.99.0",
3
+ "version": "11.100.0",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",