mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 23:01:09 +03:00
Update how uploads config is sent
This commit is contained in:
@@ -406,7 +406,7 @@ export class App {
|
|||||||
try {
|
try {
|
||||||
const uploadsConfig = await this.areUploadsEnabled(req.params.id)
|
const uploadsConfig = await this.areUploadsEnabled(req.params.id)
|
||||||
const parsedConfig = JSON.parse(chatflow.chatbotConfig)
|
const parsedConfig = JSON.parse(chatflow.chatbotConfig)
|
||||||
return res.json({ ...parsedConfig, ...uploadsConfig })
|
return res.json({ ...parsedConfig, uploads: uploadsConfig })
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return res.status(500).send(`Error parsing Chatbot Config for Chatflow ${req.params.id}`)
|
return res.status(500).send(`Error parsing Chatbot Config for Chatflow ${req.params.id}`)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user