Bugfix/vector store config not saving (#4299)

fix vector store config not saving
This commit is contained in:
Henry Heng
2025-04-15 01:30:51 +08:00
committed by GitHub
parent 27ad522b8d
commit a6506b3bf7
@@ -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)