Refactor for clarity and correctness, add JS docs
This commit is contained in:
1 parent
e0e80dc9c7
commit
c1d1e0ad1d
7 files changed
+180
-218
No files matched your search
@@ -69,7 +69,7 @@ const getMonitorStatsById = async (req, res, next) => {
|
||||
const monitorStats = await req.db.getMonitorStatsById(req);
|
||||
return res.json({
|
||||
success: true,
|
||||
msg: successMessages.MONTIOR_STATS_BY_ID,
|
||||
msg: successMessages.MONITOR_STATS_BY_ID,
|
||||
data: monitorStats,
|
||||
});
|
||||
} catch (error) {
|
||||
@@ -150,7 +150,7 @@ const getMonitorById = async (req, res, next) => {
|
||||
|
||||
return res.json({
|
||||
success: true,
|
||||
msg: successMessages.MONTIOR_GET_BY_ID,
|
||||
msg: successMessages.MONITOR_GET_BY_ID,
|
||||
data: monitor,
|
||||
});
|
||||
} catch (error) {
|
||||
|
||||
Reference in new issue
Block a user