database-connector 1.0.3 → 1.0.5

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/models/Order.js CHANGED
@@ -1,5 +1,6 @@
1
1
  const mongoose = require('mongoose');
2
2
  var ObjectId = require('mongodb').ObjectID;
3
+ const Sale = require('./Sale');
3
4
 
4
5
  const { policySchema } = require('./Policy');
5
6
  const orderSchema = new mongoose.Schema(
package/models/Policy.js CHANGED
@@ -93,3 +93,4 @@ exports.policySchema = new Schema(
93
93
  }
94
94
  );
95
95
 
96
+
package/models/index.js CHANGED
@@ -31,7 +31,7 @@ const SubscriptionOffer = require('./SubscriptionOffer');
31
31
  const FlashDeal = require('./FlashDeal');
32
32
  const Notification = require('./Notification');
33
33
  const PaymentType = require('./PaymentType');
34
- const Policy = require('./Policy');
34
+ const {policySchema} = require('./Policy');
35
35
  const ReductionOffer = require('./ReductionOffer');
36
36
  const Sale = require('./Sale');
37
37
  const StoreCategory = require('./StoreCategory');
@@ -41,7 +41,7 @@ const StoreCategory = require('./StoreCategory');
41
41
  module.exports = {
42
42
  connectToDatabase,
43
43
  PaymentType,
44
- Policy,
44
+ policySchema,
45
45
  ReductionOffer,
46
46
  Sale,
47
47
  StoreCategory,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "database-connector",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "main": "models/index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"