mirror of
https://github.com/coder/coder.git
synced 2026-10-24 01:26:25 +08:00
fix: add workspace owner id as query param to websocket (#18363)
Co-authored-by: Steven Masley <stevenmasley@gmail.com>
This commit is contained in:
co-authored by
Steven Masley
parent
c1341cccdd
commit
9a432b8d9f
@@ -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) =>
|
||||
|
||||
Reference in New Issue
Block a user