Add thunks for getting single monitor and pausing/resuming single monitor

This commit is contained in:
Alex Holliday committed 2024-08-28 20:07:22 -07:00
1 parent 17174ebe14
commit d4ed7f3f7a
4 files changed
+143 -12

No files matched your search

+1 -1
View File
@@ -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;