flykup_model_development 3.1.40 → 3.1.41

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.
@@ -105,14 +105,18 @@ const notificationSchema = new mongoose.Schema(
105
105
  type: String,
106
106
  },
107
107
  },
108
+ // metadata: {
109
+ // status: String,
110
+ // reason: String,
111
+ // orderId: mongoose.Schema.Types.ObjectId,
112
+ // requestId: mongoose.Schema.Types.ObjectId,
113
+ // customerName: String,
114
+ // sellerName: String,
115
+ // customerProfileURL: String,
116
+ // },
108
117
  metadata: {
109
- status: String,
110
- reason: String,
111
- orderId: mongoose.Schema.Types.ObjectId,
112
- requestId: mongoose.Schema.Types.ObjectId,
113
- customerName: String,
114
- sellerName: String,
115
- customerProfileURL: String,
118
+ type: mongoose.Schema.Types.Mixed, // This allows any JSON object
119
+ default: {} // Default to empty object
116
120
  },
117
121
  },
118
122
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flykup_model_development",
3
- "version": "3.1.40",
3
+ "version": "3.1.41",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "private": false,