@dhyasama/totem-models 7.27.1 → 7.28.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/index.js CHANGED
@@ -63,8 +63,8 @@ var bootstrap = function(mongoose, config) {
63
63
  require('./lib/List.js')(mongoose, config);
64
64
  require('./lib/Message.js')(mongoose, config);
65
65
  require('./lib/News.js')(mongoose, config);
66
- require('./lib/SheetSync.js')(mongoose, config);
67
66
  require('./lib/Snapshot.js')(mongoose, config);
67
+ require('./lib/Sync.js')(mongoose, config);
68
68
  require('./lib/Webhook.js')(mongoose, config);
69
69
 
70
70
  };
@@ -8,7 +8,7 @@ module.exports = function(mongoose, config) {
8
8
  env = process.env.NODE_ENV || 'development',
9
9
  _ = require('underscore');
10
10
 
11
- var SheetSync = new Schema({
11
+ var Sync = new Schema({
12
12
  customer: { type: String, required: true },
13
13
  uuid: { type: String, required: true },
14
14
  syncedOn: { type: Date, required: true },
@@ -19,7 +19,7 @@ module.exports = function(mongoose, config) {
19
19
  }]
20
20
  });
21
21
 
22
- SheetSync.statics.getByUUID = function getByUUID(customerId, uuid, cb) {
22
+ Sync.statics.getByUUID = function getByUUID(customerId, uuid, cb) {
23
23
 
24
24
  var self = this;
25
25
 
@@ -32,13 +32,13 @@ module.exports = function(mongoose, config) {
32
32
 
33
33
  };
34
34
 
35
- SheetSync.statics.upsert = function(sheetsync, cb) {
36
- sheetsync.createdOn = new Date();
37
- sheetsync.save(cb);
35
+ Sync.statics.upsert = function(sync, cb) {
36
+ sync.createdOn = new Date();
37
+ sync.save(cb);
38
38
  };
39
39
 
40
- SheetSync.set('autoIndex', false);
40
+ Sync.set('autoIndex', false);
41
41
 
42
- mongoose.model('SheetSync', SheetSync, '_SheetSyncs');
42
+ mongoose.model('Sync', Sync, '_Syncs');
43
43
 
44
44
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "7.27.1",
3
+ "version": "7.28.0",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",