shuttlepro-shared 1.4.58 → 1.4.60

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.
@@ -80,14 +80,18 @@ const conversationSchema = new mongoose.Schema(
80
80
  closedBy: { type: Schema.Types.ObjectId, ref: "User", default: null },
81
81
  },
82
82
  solved: { type: Boolean, default: false },
83
- reasonForSolving: {
84
- reason: { type: String, default: "" },
85
- category: { type: String, default: "" },
86
- color: { type: String, default: "" },
87
- solvedBy: { type: Schema.Types.ObjectId, ref: "User", default: null },
88
- solvedAt: { type: String },
89
-
90
- },
83
+ reasonForSolving: [
84
+ new mongoose.Schema(
85
+ {
86
+ reason: { type: String, default: "" },
87
+ category: { type: String, default: "" },
88
+ color: { type: String, default: "" },
89
+ solvedBy: { type: Schema.Types.ObjectId, ref: "User", default: null },
90
+ solvedAt: { type: String },
91
+ },
92
+ { _id: false }
93
+ ),
94
+ ],
91
95
  integratedAccount: { type: String, default: "" },
92
96
  isRead: { type: Boolean, default: false },
93
97
  ticketId: { type: String, default: "" },
package/models/Product.js CHANGED
@@ -192,7 +192,7 @@ const updateNewProduct = async (doc, next) => {
192
192
  newProductData,
193
193
  { upsert: true, new: true }
194
194
  );
195
- await updateEmbedding(newProductData.id, newProductData.workspaceId);
195
+ // await updateEmbedding(newProductData.id, newProductData.workspaceId);
196
196
  }
197
197
  } catch (error) {
198
198
  console.error("Error updating NewProduct:", error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shuttlepro-shared",
3
- "version": "1.4.58",
3
+ "version": "1.4.60",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {