(conversation, userId)
| 5 | const socketManager = require("../modules/socketManager"); |
| 6 | |
| 7 | function assertConversationOwnership(conversation, userId) { |
| 8 | if (!conversation) { |
| 9 | throw new Error("Conversation not found"); |
| 10 | } |
| 11 | |
| 12 | if (`${conversation.user_id}` !== `${userId}`) { |
| 13 | throw new Error("Conversation does not belong to this user"); |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | async function getOrchestration( |
| 18 | teamId, |
no outgoing calls
no test coverage detected