Fix apikey not URL safe (#2602)

This commit is contained in:
YISH
2024-06-14 18:35:25 +08:00
committed by GitHub
parent c34eb8ee15
commit 371e632a2c
3 changed files with 9 additions and 8 deletions
@@ -71,7 +71,7 @@ const getChatflowByApiKey = async (req: Request, res: Response, next: NextFuncti
if (!apikey) {
return res.status(401).send('Unauthorized')
}
const apiResponse = await chatflowsService.getChatflowByApiKey(apikey.id)
const apiResponse = await chatflowsService.getChatflowByApiKey(apikey.id, req.query.keyonly)
return res.json(apiResponse)
} catch (error) {
next(error)