Update how uploads config is sent

This commit is contained in:
Ilango
2024-02-12 23:56:46 +05:30
parent 9072e694ca
commit 0a54db71c1
+1 -1
View File
@@ -406,7 +406,7 @@ export class App {
try {
const uploadsConfig = await this.areUploadsEnabled(req.params.id)
const parsedConfig = JSON.parse(chatflow.chatbotConfig)
return res.json({ ...parsedConfig, ...uploadsConfig })
return res.json({ ...parsedConfig, uploads: uploadsConfig })
} catch (e) {
return res.status(500).send(`Error parsing Chatbot Config for Chatflow ${req.params.id}`)
}