(req, res)
| 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 | |
| 206 | const 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected