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

Function batchUpdateUsersStatus

controllers/userStatus.js:195–208  ·  view source on GitHub ↗
(req, res)

Source from the content-addressed store, hash-verified

193 const data = await userStatusModel.getTaskBasedUsersStatus();
194 return res.json({
195 message: "All users based on tasks found successfully.",
196 data,
197 });
198 } catch (error) {
199 logger.error(error.message);
200 return res.status(500).json({
201 message: "The server has encountered an unexpected error. Please contact the administrator for more information.",
202 });
203 }
204};
205
206const getUserStatusControllers = async (req, res, next) => {
207 if (Object.keys(req.query).includes("aggregate")) {
208 await getTaskBasedUsersStatus(req, res, next);
209 } else {
210 await getAllUserStatus(req, res, next);
211 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected