fix(mcp): safeBroadcast now calls broadcast correctly (was recursive call bug)
This commit is contained in:
parent
6883f2fdf9
commit
caa6b7ecca
@ -6,9 +6,9 @@ import { isDemoUser } from '../services/authService';
|
||||
|
||||
function safeBroadcast(tripId: number, event: string, payload: Record<string, unknown>): void {
|
||||
try {
|
||||
safeBroadcast(tripId, event, payload);
|
||||
broadcast(tripId, event, payload);
|
||||
} catch (err) {
|
||||
console.error(`[MCP] broadcast failed for ${event}:`, err);
|
||||
console.error(`[MCP] broadcast failed for ${event}:`, err?.message ?? err);
|
||||
}
|
||||
}
|
||||
import {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user