shuttlepro-shared 1.3.66 → 1.3.67
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/config/redis.js +2 -0
- package/models/Activity.js +7 -2
- package/models/Conversation.js +1 -0
- package/models/Integration.js +1 -0
- package/models/Workspace.js +0 -2
- package/package.json +1 -1
package/config/redis.js
CHANGED
|
@@ -70,6 +70,7 @@ const setRedisData = async (
|
|
|
70
70
|
expiryInSeconds = 3600
|
|
71
71
|
) => {
|
|
72
72
|
try {
|
|
73
|
+
await connectRedis();
|
|
73
74
|
const stringifiedValue = JSON.stringify(value);
|
|
74
75
|
let result;
|
|
75
76
|
|
|
@@ -93,6 +94,7 @@ const setRedisData = async (
|
|
|
93
94
|
// ✅ Get Data from Redis (Supports String & Hash)
|
|
94
95
|
const getRedisData = async (key, field = null) => {
|
|
95
96
|
try {
|
|
97
|
+
await connectRedis();
|
|
96
98
|
const result = field
|
|
97
99
|
? await client.hGet(key, field)
|
|
98
100
|
: await client.get(key);
|
package/models/Activity.js
CHANGED
|
@@ -8,8 +8,13 @@ const ActivitySchema = new Schema(
|
|
|
8
8
|
name: { type: String, default: "" },
|
|
9
9
|
type: { type: String, default: "" },
|
|
10
10
|
orderId: { type: String, default: "" },
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
integrationId: {
|
|
12
|
+
type: Schema.Types.ObjectId,
|
|
13
|
+
ref: "Integration",
|
|
14
|
+
default: null,
|
|
15
|
+
},
|
|
16
|
+
emailId: { type: Schema.Types.ObjectId, ref: "EmailContact" },
|
|
17
|
+
mailGroupId: { type: Schema.Types.ObjectId, ref: "EmailContactGroup" },
|
|
13
18
|
templateId: { type: Schema.Types.ObjectId, ref: "DescriptionTemplate" },
|
|
14
19
|
message: { type: String, default: "" },
|
|
15
20
|
status: { type: String, default: "" },
|
package/models/Conversation.js
CHANGED
package/models/Integration.js
CHANGED
package/models/Workspace.js
CHANGED
|
@@ -76,7 +76,6 @@ const ReasonSchema = new mongoose.Schema({
|
|
|
76
76
|
reason: { type: String, required: true },
|
|
77
77
|
color: { type: String, default: "#000000" },
|
|
78
78
|
categoryTitle: { type: String, required: true },
|
|
79
|
-
isDefault: { type: Boolean, default: false },
|
|
80
79
|
});
|
|
81
80
|
const ResolutionReasonCategorySchema = new mongoose.Schema({
|
|
82
81
|
_id: {
|
|
@@ -240,7 +239,6 @@ const workspaceSchema = new mongoose.Schema(
|
|
|
240
239
|
color: { type: String, default: "" },
|
|
241
240
|
},
|
|
242
241
|
],
|
|
243
|
-
sendReadReceipts: { type: Boolean, default: true },
|
|
244
242
|
chatGptApiKey: String,
|
|
245
243
|
skuSeparator: { type: String, default: "-" },
|
|
246
244
|
uniqueNo: { type: Number, default: 0 },
|