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

Function updateUserStatusController

controllers/userStatus.js:243–249  ·  view source on GitHub ↗
(req, res, next)

Source from the content-addressed store, hash-verified

241 logger.error(`Error while cancelling the ${userState.OOO} Status : ${error}`);
242 if (error instanceof Forbidden) {
243 return res.status(403).json({
244 statusCode: 403,
245 error: "Forbidden",
246 message: error.message,
247 });
248 } else if (error instanceof NotFound) {
249 return res.status(404).json({
250 statusCode: 404,
251 error: "NotFound",
252 message: error.message,

Callers

nothing calls this directly

Calls 2

cancelOOOStatusFunction · 0.85
updateUserStatusFunction · 0.70

Tested by

no test coverage detected