mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 09:00:52 +03:00
Bugfix/Parse vars from overrideconfig to JSON (#3347)
parse vars from overrideconfig to JSON
This commit is contained in:
@@ -184,6 +184,9 @@ export const utilBuildChatflow = async (req: Request, isInternal: boolean = fals
|
||||
|
||||
fs.unlinkSync(file.path)
|
||||
}
|
||||
if (overrideConfig.vars && typeof overrideConfig.vars === 'string') {
|
||||
overrideConfig.vars = JSON.parse(overrideConfig.vars)
|
||||
}
|
||||
incomingInput = {
|
||||
question: req.body.question ?? 'hello',
|
||||
overrideConfig
|
||||
|
||||
@@ -89,6 +89,9 @@ export const upsertVector = async (req: Request, isInternal: boolean = false) =>
|
||||
|
||||
fs.unlinkSync(file.path)
|
||||
}
|
||||
if (overrideConfig.vars && typeof overrideConfig.vars === 'string') {
|
||||
overrideConfig.vars = JSON.parse(overrideConfig.vars)
|
||||
}
|
||||
incomingInput = {
|
||||
question: req.body.question ?? 'hello',
|
||||
overrideConfig,
|
||||
|
||||
Reference in New Issue
Block a user