Skip to content

Commit 49e0689

Browse files
NathanFlurryjog1t
authored andcommitted
fix(rivetkit): fix c.client not respecting correct origin
1 parent 53631b6 commit 49e0689

File tree

1 file changed

+5
-8
lines changed
  • rivetkit-typescript/packages/rivetkit/src/manager

1 file changed

+5
-8
lines changed

rivetkit-typescript/packages/rivetkit/src/manager/router.ts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,7 @@ export function buildManagerRouter(
165165
} else {
166166
// If no name is provided, try all registered actor types
167167
// Actor IDs are globally unique, so we'll find it in one of them
168-
for (const actorName of Object.keys(
169-
config.use,
170-
)) {
168+
for (const actorName of Object.keys(config.use)) {
171169
const actorOutput =
172170
await managerDriver.getForId({
173171
c,
@@ -437,7 +435,9 @@ export function buildManagerRouter(
437435
params,
438436
);
439437

440-
return await createTestWebSocketProxy(clientToProxyWsPromise);
438+
return await createTestWebSocketProxy(
439+
clientToProxyWsPromise,
440+
);
441441
})(c, noopNext());
442442
});
443443

@@ -555,10 +555,7 @@ export function buildManagerRouter(
555555
handleMetadataRequest(c, config, { normal: {} }, undefined),
556556
);
557557

558-
managerDriver.modifyManagerRouter?.(
559-
config,
560-
router as unknown as Hono,
561-
);
558+
managerDriver.modifyManagerRouter?.(config, router as unknown as Hono);
562559
});
563560
}
564561

0 commit comments

Comments
 (0)