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