mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 17:01:00 +03:00
Bugfix/vector store config not saving (#4299)
fix vector store config not saving
This commit is contained in:
@@ -334,8 +334,7 @@ const saveVectorStoreConfig = async (req: Request, res: Response, next: NextFunc
|
|||||||
}
|
}
|
||||||
const body = req.body
|
const body = req.body
|
||||||
const appDataSource = getRunningExpressApp().AppDataSource
|
const appDataSource = getRunningExpressApp().AppDataSource
|
||||||
const componentNodes = getRunningExpressApp().nodesPool.componentNodes
|
const apiResponse = await documentStoreService.saveVectorStoreConfig(appDataSource, body)
|
||||||
const apiResponse = await documentStoreService.saveVectorStoreConfig(appDataSource, componentNodes, body)
|
|
||||||
return res.json(apiResponse)
|
return res.json(apiResponse)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
next(error)
|
next(error)
|
||||||
|
|||||||
Reference in New Issue
Block a user