@dhyasama/totem-models 2.1.1 → 2.1.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.
@@ -13,7 +13,7 @@ module.exports = function(mongoose, config) {
13
13
  var Interaction = new Schema({
14
14
 
15
15
  calendarEventId: { type: Schema.ObjectId, ref: 'CalendarEvent', required: true }, // the event from the original pull
16
- providerEventId: { type: String, required: true, index: true, trim: true, unique: true }, // unique id from the calendar provider
16
+ providerEventId: { type: String, required: true, index: true, trim: true }, // unique id from the calendar provider
17
17
  totemCustomerId: { type: Schema.ObjectId, ref: 'Organization', index: true, required: true },
18
18
  summary: { type: String, required: true, trim: true },
19
19
  startTime: { type: Date, index: true },
@@ -90,7 +90,7 @@ module.exports = function(mongoose, config) {
90
90
  // because it will alter the pages
91
91
  options.sort = options.sort || {'startTime': -1};
92
92
  options.before = options.before || moment().toISOString();
93
- options.after = options.after || moment().subtract(1, 'year').toISOString();
93
+ options.after = options.after || moment().subtract(2, 'year').toISOString();
94
94
 
95
95
  var query = self.find({ totemCustomerId: config.CUSTOMER_ID });
96
96
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",