@dhyasama/totem-models 6.15.0 → 6.15.2
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/CalendarEvent.js +1 -3
- package/lib/Organization.js +2 -2
- package/package.json +1 -1
- package/.npmignore +0 -14
- package/package-lock.json +0 -1829
package/lib/CalendarEvent.js
CHANGED
|
@@ -82,9 +82,7 @@ module.exports = function(mongoose, config) {
|
|
|
82
82
|
|
|
83
83
|
var self = this;
|
|
84
84
|
var query = self.find({ email: email });
|
|
85
|
-
|
|
86
|
-
query.where({ startTime: { $gte: startsAfter }});
|
|
87
|
-
query.where({ startTime: { $lte: startsBefore }});
|
|
85
|
+
query.where({ start: { $gte: startsAfter, $lte: startsBefore }});
|
|
88
86
|
query.exec(cb);
|
|
89
87
|
|
|
90
88
|
};
|
package/lib/Organization.js
CHANGED
|
@@ -214,6 +214,8 @@ module.exports = function(mongoose, config) {
|
|
|
214
214
|
color: { type: String, trim: true }
|
|
215
215
|
}],
|
|
216
216
|
|
|
217
|
+
sourceTypes: [ { type: String, trim: true } ],
|
|
218
|
+
|
|
217
219
|
standardFields: {
|
|
218
220
|
|
|
219
221
|
// Standard fields are always "on" in the system
|
|
@@ -246,7 +248,6 @@ module.exports = function(mongoose, config) {
|
|
|
246
248
|
},
|
|
247
249
|
|
|
248
250
|
sourcePerson: {
|
|
249
|
-
types: [ { type: String, trim: true } ],
|
|
250
251
|
order: { type: Number, default: 99 },
|
|
251
252
|
colspan: { type: Number, default: 1 },
|
|
252
253
|
showOnFilter: { type: Boolean, default: true },
|
|
@@ -254,7 +255,6 @@ module.exports = function(mongoose, config) {
|
|
|
254
255
|
},
|
|
255
256
|
|
|
256
257
|
sourceType: {
|
|
257
|
-
types: [ { type: String, trim: true } ],
|
|
258
258
|
order: { type: Number, default: 99 },
|
|
259
259
|
colspan: { type: Number, default: 1 },
|
|
260
260
|
showOnFilter: { type: Boolean, default: true },
|
package/package.json
CHANGED