@dhyasama/totem-models 2.1.0 → 2.1.1

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 id from the calendar provider
16
+ providerEventId: { type: String, required: true, index: true, trim: true, unique: 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 },
@@ -140,7 +140,7 @@ module.exports = function(mongoose, config) {
140
140
 
141
141
  };
142
142
 
143
- Interaction.set('autoIndex', false);
143
+ Interaction.set('autoIndex', true);
144
144
  Interaction.on('index', function(err) { console.log('error building interaction indexes: ' + err); });
145
145
 
146
146
  mongoose.model('Interaction', Interaction);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",