fix(mcp): safeBroadcast now calls broadcast correctly (was recursive call bug)

This commit is contained in:
unknown
2026-04-06 15:41:49 +02:00
committed by jubnl
parent 6883f2fdf9
commit caa6b7ecca
+2 -2
View File
@@ -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 {