@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.
- package/lib/Meeting.js +5 -15
- 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
|
-
|
|
19
|
+
startOn: { type: Date, index: false, required: true },
|
|
20
20
|
|
|
21
|
-
|
|
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) {
|