File tree 2 files changed +4
-5
lines changed
packages/server/src/utils
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -238,7 +238,7 @@ export const executeFlow = async ({
238
238
signal
239
239
} : IExecuteFlowParams ) => {
240
240
const question = incomingInput . question
241
- const overrideConfig = incomingInput . overrideConfig ?? { }
241
+ let overrideConfig = incomingInput . overrideConfig ?? { }
242
242
const uploads = incomingInput . uploads
243
243
const prependMessages = incomingInput . history ?? [ ]
244
244
const streaming = incomingInput . streaming
@@ -316,7 +316,7 @@ export const executeFlow = async ({
316
316
317
317
// Process form data body with files
318
318
if ( files ?. length ) {
319
- const overrideConfig : ICommonObject = { ...incomingInput }
319
+ overrideConfig = { ...incomingInput }
320
320
for ( const file of files ) {
321
321
const fileNames : string [ ] = [ ]
322
322
const fileBuffer = await getFileFromUpload ( file . path ?? file . key )
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import { Request } from 'express'
2
2
import * as path from 'path'
3
3
import { cloneDeep , omit } from 'lodash'
4
4
import {
5
- ICommonObject ,
6
5
IMessage ,
7
6
addArrayFilesToStorage ,
8
7
mapMimeTypeToInputField ,
@@ -47,15 +46,15 @@ export const executeUpsert = async ({
47
46
files
48
47
} : IExecuteFlowParams ) => {
49
48
const question = incomingInput . question
50
- const overrideConfig = incomingInput . overrideConfig ?? { }
49
+ let overrideConfig = incomingInput . overrideConfig ?? { }
51
50
let stopNodeId = incomingInput ?. stopNodeId ?? ''
52
51
const chatHistory : IMessage [ ] = [ ]
53
52
const isUpsert = true
54
53
const chatflowid = chatflow . id
55
54
const apiMessageId = uuidv4 ( )
56
55
57
56
if ( files ?. length ) {
58
- const overrideConfig : ICommonObject = { ...incomingInput }
57
+ overrideConfig = { ...incomingInput }
59
58
for ( const file of files ) {
60
59
const fileNames : string [ ] = [ ]
61
60
const fileBuffer = await getFileFromUpload ( file . path ?? file . key )
You can’t perform that action at this time.
0 commit comments