fix: add workspace owner id as query param to websocket (#18363)

Co-authored-by: Steven Masley <stevenmasley@gmail.com>
This commit is contained in:
Jaayden Halko
2025-06-13 14:49:32 -04:00
committed by GitHub
co-authored by Steven Masley
parent c1341cccdd
commit 9a432b8d9f
7 changed files with 74 additions and 24 deletions
+2
View File
@@ -1017,6 +1017,7 @@ class ApiMethods {
templateVersionDynamicParameters = (
versionId: string,
userId: string,
{
onMessage,
onError,
@@ -1029,6 +1030,7 @@ class ApiMethods {
): WebSocket => {
const socket = createWebSocket(
`/api/v2/templateversions/${versionId}/dynamic-parameters`,
new URLSearchParams({ user_id: userId }),
);
socket.addEventListener("message", (event) =>