shuttlepro-shared 1.4.28 → 1.4.30

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.
@@ -243,6 +243,18 @@ class CallRepository {
243
243
  return query.exec();
244
244
  }
245
245
 
246
+ async addCallHistory(callId, historyData = {}) {
247
+ const entry = historyData;
248
+ return this._safeExec(
249
+ Call.findOneAndUpdate(
250
+ { callId },
251
+ { $push: { callHistory: entry } },
252
+ { new: true }
253
+ ),
254
+ `Failed to add call history for ${callId}`
255
+ );
256
+ }
257
+
246
258
  getCallsByAgent(
247
259
  agentId,
248
260
  {
package/config/socket.js CHANGED
@@ -43,7 +43,7 @@ const initializeSocket = async (
43
43
 
44
44
  // Initialize Socket.IO server if not already done
45
45
  if (!io) {
46
- io = new Server(server, { cors });
46
+ io = new Server(server, { path: namespaceParam, cors });
47
47
  console.log("✅ Socket.IO server initialized");
48
48
  }
49
49
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shuttlepro-shared",
3
- "version": "1.4.28",
3
+ "version": "1.4.30",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {