(req, res)
| 631 | */ |
| 632 | |
| 633 | const verifyUserImage = async (req, res) => { |
| 634 | try { |
| 635 | const { type: imageType } = req.query; |
| 636 | const { id: userId } = req.params; |
| 637 | await userQuery.markAsVerified(userId, imageType); |
| 638 | return res.json({ |
| 639 | message: `${imageType} image was verified successfully!`, |
| 640 | }); |
| 641 | } catch (error) { |
| 642 | logger.error(`Error while verifying image of user: ${error}`); |
| 643 | return res.boom.badImplementation(INTERNAL_SERVER_ERROR); |
| 644 | } |
| 645 | }; |
| 646 | |
| 647 | /** |
| 648 | * Patch Update user nickname |
nothing calls this directly
no outgoing calls
no test coverage detected