fix(deployed-chat): include workspace id in deployed chat request (#1664)

This commit is contained in:
Waleed
2025-10-16 16:23:28 -07:00
committed by GitHub
parent 22f9d6e2df
commit 29c7827d6f
2 changed files with 8 additions and 2 deletions

View File

@@ -98,6 +98,7 @@ export async function POST(
const workflowResult = await db
.select({
isDeployed: workflow.isDeployed,
workspaceId: workflow.workspaceId,
})
.from(workflow)
.where(eq(workflow.id, deployment.workflowId))
@@ -146,7 +147,12 @@ export async function POST(
const stream = await createStreamingResponse({
requestId,
workflow: { id: deployment.workflowId, userId: deployment.userId, isDeployed: true },
workflow: {
id: deployment.workflowId,
userId: deployment.userId,
workspaceId: workflowResult[0].workspaceId,
isDeployed: true,
},
input: workflowInput,
executingUserId: deployment.userId,
streamConfig: {

View File

@@ -16,7 +16,7 @@ export interface StreamingConfig {
export interface StreamingResponseOptions {
requestId: string
workflow: { id: string; userId: string; isDeployed?: boolean }
workflow: { id: string; userId: string; workspaceId?: string | null; isDeployed?: boolean }
input: any
executingUserId: string
streamConfig: StreamingConfig