mirror of
https://github.com/moeru-ai/airi.git
synced 2026-08-14 00:48:06 +00:00
fix(server-runtime): preserve explicit empty route destinations (#1521)
This commit is contained in:
@@ -79,7 +79,7 @@ export function createPolicyMiddleware(policy: RoutingPolicy): RouteMiddleware {
|
||||
}
|
||||
|
||||
export function collectDestinations(event: WebSocketEvent | (Omit<WebSocketEvent, 'metadata'> & Partial<Pick<WebSocketEvent, 'metadata'>>)) {
|
||||
if (event.route?.destinations !== undefined) {
|
||||
if (event.route && 'destinations' in event.route) {
|
||||
return event.route.destinations
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user