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):
9797 tags = [_ ("Application/Chat" )])
9898 def post (self , request : Request ):
9999 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 ())
101101
102102 class OpenTemp (APIView ):
103103 authentication_classes = [TokenAuth ]
Original file line number Diff line number Diff line change @@ -268,8 +268,10 @@ const openChatId: () => Promise<string> = () => {
268268 })
269269 } else {
270270 if (isWorkFlow (obj .type )) {
271+ console .log (obj )
271272 const submitObj = {
272- work_flow: obj .work_flow
273+ work_flow: obj .work_flow ,
274+ user_id: obj .user
273275 }
274276 return applicationApi .postWorkflowChatOpen (submitObj ).then ((res ) => {
275277 chartOpenId .value = res .data
You can’t perform that action at this time.
0 commit comments