tango-api-schema 2.1.81 → 2.1.82

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-api-schema",
3
- "version": "2.1.81",
3
+ "version": "2.1.82",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -38,11 +38,7 @@ const liveConnectionSchema = new mongoose.Schema(
38
38
  enum: ['open', 'closed', 'connecting', 'error'],
39
39
  default: 'closed', // Default state when connection is not established
40
40
  },
41
- socketInstance: {
42
- type: mongoose.Schema.Types.ObjectId,
43
- ref: 'WebSocketConnection', // Reference to WebSocketConnection
44
- required: false, // We won't store the actual WebSocket here, just an ID
45
- },
41
+ socketInstance: { type: Object, required: true }
46
42
  },
47
43
  {
48
44
  timestamps: true,