Skip to content

Commit 85deab0

Browse files
authored
fix(cloud-task): attribute ai_generation task_user_id to task creator (#3062)
1 parent 5f6f710 commit 85deab0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/agent/src/server/agent-server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1090,7 +1090,7 @@ export class AgentServer {
10901090
aiStage: getTaskRunStateString(preTaskRun, "ai_stage"),
10911091
taskId: payload.task_id,
10921092
taskRunId: payload.run_id,
1093-
taskUserId: payload.user_id,
1093+
taskUserId: payload.user_id || preTask?.created_by?.id || null,
10941094
taskTitle: preTask?.title,
10951095
});
10961096

0 commit comments

Comments
 (0)