(req, res)
| 912 | logger.error("Could not save user data"); |
| 913 | return res.boom.badImplementation(INTERNAL_SERVER_ERROR); |
| 914 | } |
| 915 | }; |
| 916 | |
| 917 | const getUserIntro = async (req, res) => { |
| 918 | try { |
| 919 | const data = await userQuery.getJoinData(req.params.userId); |
| 920 | if (data.length) { |
| 921 | return res.json({ |
| 922 | message: "User data returned", |
| 923 | data, |
| 924 | }); |
| 925 | } else { |
| 926 | return res.status(404).json({ |
| 927 | message: "Data Not Found", |
| 928 | }); |
| 929 | } |
| 930 | } catch (err) { |
| 931 | logger.error("Could Not Get User Data", err); |
| 932 | return res.boom.badImplementation(INTERNAL_SERVER_ERROR); |
| 933 | } |
| 934 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected