(req: Request, isInternal: boolean = false)
| 5 | import { getErrorMessage } from '../../errors/utils' |
| 6 | |
| 7 | const upsertVectorMiddleware = async (req: Request, isInternal: boolean = false) => { |
| 8 | try { |
| 9 | return await upsertVector(req, isInternal) |
| 10 | } catch (error) { |
| 11 | throw new InternalFlowiseError(StatusCodes.INTERNAL_SERVER_ERROR, `Error: vectorsService.upsertVector - ${getErrorMessage(error)}`) |
| 12 | } |
| 13 | } |
| 14 | |
| 15 | export default { |
| 16 | upsertVectorMiddleware |
nothing calls this directly
no test coverage detected