@dhyasama/totem-models 11.100.0 → 11.102.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 +7 -5
  2. package/package.json +1 -1
package/lib/Meeting.js CHANGED
@@ -7,6 +7,8 @@ module.exports = function(mongoose, config) {
7
7
  Schema = mongoose.Schema;
8
8
 
9
9
  var Meeting = new Schema({
10
+
11
+ customer: { type: Schema.ObjectId, ref: 'Organization', index: true, required: true },
10
12
 
11
13
  provider: { type: String, index: false, required: true },
12
14
 
@@ -14,7 +16,7 @@ module.exports = function(mongoose, config) {
14
16
 
15
17
  uniqueId: { type: String, index: true, required: false },
16
18
 
17
- summary: { type: String, index: false, required: true },
19
+ title: { type: String, index: false, required: true },
18
20
 
19
21
  startOn: { type: Date, index: false, required: true },
20
22
 
@@ -26,9 +28,9 @@ module.exports = function(mongoose, config) {
26
28
 
27
29
  updatedOn: { type: Date, index: false, required: true },
28
30
 
29
- people: [{ type: Schema.ObjectId, ref: 'Person', index: true }],
30
-
31
31
  raw: { type: String, index: false, required: true },
32
+
33
+ people: [{ type: Schema.ObjectId, ref: 'Person', index: true }],
32
34
 
33
35
  notes: { type: String, trim: true },
34
36
 
@@ -82,9 +84,9 @@ module.exports = function(mongoose, config) {
82
84
  .exec(cb);
83
85
  };
84
86
 
85
- Meeting.statics.findByEmail = function (email, cb) {
87
+ Meeting.statics.findByPerson = function (person, cb) {
86
88
  this
87
- .find({ 'attendees.email': email })
89
+ .find({ 'people': person })
88
90
  .exec(cb);
89
91
  };
90
92
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "11.100.0",
3
+ "version": "11.102.0",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",