@francesco_ksh/app-ksh-mgd-schemas 2.3.7 → 2.3.8

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
@@ -35,6 +35,12 @@ const crossListingSchema = require('./models/CrossListing');
35
35
  const exploreCardSchema = require('./models/ExploreCard');
36
36
  const bonusSchema = require('./models/Bonus');
37
37
 
38
+ // Register Counter model so it's available when User.js and other models try to use it
39
+ const mongoose = require('mongoose');
40
+ if (!mongoose.models.Counter) {
41
+ mongoose.model('Counter', counterSchema);
42
+ }
43
+
38
44
  module.exports = {
39
45
  adminReviewSchema,
40
46
  articlesSchema,
package/models/Order.js CHANGED
@@ -482,6 +482,12 @@ const orderSchema = new Schema(
482
482
  serviceCode: {
483
483
  type: String,
484
484
  },
485
+ readyReturnsUniqueOrderId: {
486
+ type: String,
487
+ },
488
+ readyReturnsPrimaryOrderId: {
489
+ type: String,
490
+ },
485
491
  },
486
492
  bolLink: {
487
493
  type: String,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@francesco_ksh/app-ksh-mgd-schemas",
3
- "version": "2.3.7",
3
+ "version": "2.3.8",
4
4
  "description": "Mongoose schema definitions",
5
5
  "main": "index.js",
6
6
  "repository": {