shuttlepro-shared 1.1.78 → 1.1.80

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 CHANGED
@@ -81,7 +81,9 @@ const setRedisData = async (
81
81
  await connectRedis();
82
82
  let result;
83
83
  if (field) {
84
- result = await client.hSet(key, field, JSON.stringify(value));
84
+ result = await client.hSet(key, field, JSON.stringify(value), {
85
+ EX: expiryInSeconds,
86
+ });
85
87
  } else {
86
88
  result = await client.set(key, JSON.stringify(value), {
87
89
  EX: expiryInSeconds,
@@ -90,7 +92,7 @@ const setRedisData = async (
90
92
  return result;
91
93
  } catch (err) {
92
94
  console.error("❌ Error setting Redis data:", err);
93
- throw err;
95
+ return null;
94
96
  }
95
97
  };
96
98
 
package/models/Message.js CHANGED
@@ -27,6 +27,7 @@ const newMessageSchema = new mongoose.Schema(
27
27
  "facebook",
28
28
  "instagram",
29
29
  "webChat",
30
+ "chat-status",
30
31
  ],
31
32
  required: true,
32
33
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shuttlepro-shared",
3
- "version": "1.1.78",
3
+ "version": "1.1.80",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {