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

Function getProfileDiff

controllers/profileDiffs.js:42–57  ·  view source on GitHub ↗
(req, res)

Source from the content-addressed store, hash-verified

40};
41
42const getProfileDiff = async (req, res) => {
43 try {
44 const result = await profileDiffsQuery.fetchProfileDiff(req.params.id);
45 if (result.profileDiffExists) {
46 return res.json({
47 message: "Profile Diff returned successfully!",
48 profileDiff: result,
49 });
50 }
51
52 return res.boom.notFound("Profile Diff doesn't exist");
53 } catch (error) {
54 logger.error(`Error while fetching Profile Diff: ${error}`);
55 return res.boom.serverUnavailable(SOMETHING_WENT_WRONG);
56 }
57};
58
59module.exports = {
60 getProfileDiffs,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected