File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
ui/src/components/ai-chat Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ class OpenWorkFlowTemp(APIView):
97
97
tags = [_ ("Application/Chat" )])
98
98
def post (self , request : Request ):
99
99
return result .success (ChatSerializers .OpenWorkFlowChat (
100
- data = {** request . data , 'user_id' : request .user .id }).open ())
100
+ data = {'user_id' : request .user .id , ** request . data }).open ())
101
101
102
102
class OpenTemp (APIView ):
103
103
authentication_classes = [TokenAuth ]
Original file line number Diff line number Diff line change @@ -268,8 +268,10 @@ const openChatId: () => Promise<string> = () => {
268
268
})
269
269
} else {
270
270
if (isWorkFlow (obj .type )) {
271
+ console .log (obj )
271
272
const submitObj = {
272
- work_flow: obj .work_flow
273
+ work_flow: obj .work_flow ,
274
+ user_id: obj .user
273
275
}
274
276
return applicationApi .postWorkflowChatOpen (submitObj ).then ((res ) => {
275
277
chartOpenId .value = res .data
You can’t perform that action at this time.
0 commit comments