(req, res)
| 745 | * |
| 746 | * @param req {Object} - Express request object |
| 747 | * @param res {Object} - Express response object |
| 748 | */ |
| 749 | |
| 750 | const getUserImageForVerification = async (req, res) => { |
| 751 | try { |
| 752 | const { id: userId } = req.params; |
| 753 | const userImageVerificationData = await userQuery.getUserImageForVerification(userId); |
| 754 | return res.json({ |
| 755 | message: "User image verification record fetched successfully!", |
| 756 | data: userImageVerificationData, |
| 757 | }); |
| 758 | } catch (error) { |
| 759 | logger.error(`Error while verifying image of user: ${error}`); |
| 760 | return res.boom.badImplementation(INTERNAL_SERVER_ERROR); |
| 761 | } |
| 762 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected