(req: Request, res: Response, next: NextFunction)
| 100 | } |
| 101 | |
| 102 | const getAllEvaluations = async (req: Request, res: Response, next: NextFunction) => { |
| 103 | try { |
| 104 | const { page, limit } = getPageAndLimitParams(req) |
| 105 | const workspaceId = req.user?.activeWorkspaceId |
| 106 | if (!workspaceId) { |
| 107 | throw new InternalFlowiseError( |
| 108 | StatusCodes.NOT_FOUND, |
| 109 | `Error: evaluationsService.getAllEvaluations - workspace ${workspaceId} not found!` |
| 110 | ) |
| 111 | } |
| 112 | const apiResponse = await evaluationsService.getAllEvaluations(workspaceId, page, limit) |
| 113 | return res.json(apiResponse) |
| 114 | } catch (error) { |
| 115 | next(error) |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | const isOutdated = async (req: Request, res: Response, next: NextFunction) => { |
| 120 | try { |
nothing calls this directly
no test coverage detected