database-connector 2.0.2 → 2.0.4

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.
Files changed (2) hide show
  1. package/models/index.js +2 -1
  2. package/package.json +1 -1
package/models/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  const mongoose = require('mongoose');
2
2
  const config = require('../config');
3
3
 
4
+ mongoose.set('strictQuery', false);
4
5
  const connectToDatabase = async (databaseUrl) => {
5
6
  try {
6
7
  await mongoose.connect(databaseUrl, {
@@ -32,7 +33,7 @@ const SubscriptionOffer = require('./SubscriptionOffer');
32
33
  const FlashDeal = require('./FlashDeal');
33
34
  const Notification = require('./Notification');
34
35
  const PaymentType = require('./PaymentType');
35
- const { policySchema } = require('./policy');
36
+ const { policySchema } = require('./Policy');
36
37
  const ReductionOffer = require('./ReductionOffer');
37
38
  const Sale = require('./Sale');
38
39
  const StoreCategory = require('./StoreCategory');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "database-connector",
3
- "version": "2.0.2",
3
+ "version": "2.0.4",
4
4
  "description": "MongoDB models package with Mongoose schemas for e-commerce applications. Includes User, Product, Store, Order and more with built-in validation and virtual properties.",
5
5
  "main": "models/index.js",
6
6
  "scripts": {