Add thunks for getting single monitor and pausing/resuming single monitor
This commit is contained in:
1 parent
17174ebe14
commit
d4ed7f3f7a
4 files changed
+143
-12
No files matched your search
@@ -124,7 +124,7 @@ const getMonitorById = async (req, res, next) => {
|
||||
}
|
||||
|
||||
try {
|
||||
const monitor = await req.db.getMonitorById(req, res);
|
||||
const monitor = await req.db.getMonitorById(req.params.monitorId);
|
||||
if (!monitor) {
|
||||
const error = new Error(errorMessages.MONITOR_GET_BY_ID);
|
||||
error.status = 404;
|
||||
|
||||
Reference in new issue
Block a user