database-connector 2.4.18 → 2.4.19

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/User.js +2 -1
  2. package/package.json +1 -1
package/models/User.js CHANGED
@@ -232,6 +232,8 @@ const userSchema = new mongoose.Schema(
232
232
  },
233
233
  policy: policySchema,
234
234
  shippingAdress: {
235
+ latitude: { type: Number },
236
+ longitude: { type: Number },
235
237
  countryCode: { type: String },
236
238
  country: { type: String },
237
239
  city: { type: String },
@@ -384,6 +386,5 @@ userSchema.index({ email: 1 }, { sparse: true });
384
386
  userSchema.index({ phone: 1 }, { sparse: true });
385
387
  userSchema.index({ role: 1 });
386
388
  userSchema.index({ storeSubs: 1 });
387
- userSchema.index({ 'addresses.deliveryLocation': '2dsphere' });
388
389
 
389
390
  module.exports = mongoose.model('User', userSchema);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "database-connector",
3
- "version": "2.4.18",
3
+ "version": "2.4.19",
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": {