MCPcopy Create free account
hub / github.com/RealDevSquad/website-backend / getUserIntro

Function getUserIntro

controllers/users.js:914–931  ·  view source on GitHub ↗
(req, res)

Source from the content-addressed store, hash-verified

912 logger.error("Could not save user data");
913 return res.boom.badImplementation(INTERNAL_SERVER_ERROR);
914 }
915};
916
917const 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};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected