undo changes
This commit is contained in:
1 parent
1a15c0c9b3
commit
e7ea80f820
3 files changed
+5
-10
No files matched your search
@@ -42,13 +42,8 @@ const getChecks = async (req, res, next) => {
|
||||
return;
|
||||
}
|
||||
|
||||
let limit = null;
|
||||
|
||||
try {
|
||||
if (req.query && req.query.limit) {
|
||||
limit = parseInt(req.query.limit);
|
||||
}
|
||||
const checks = await req.db.getChecks(req.params.monitorId, limit);
|
||||
const checks = await req.db.getChecks(req.params.monitorId);
|
||||
return res
|
||||
.status(200)
|
||||
.json({ success: true, msg: successMessages.CHECK_GET, data: checks });
|
||||
|
||||
@@ -10,7 +10,7 @@ router.post(
|
||||
);
|
||||
|
||||
router.get(
|
||||
"/:monitorId?limit",
|
||||
"/:monitorId",
|
||||
verifyOwnership(Monitor, "monitorId"),
|
||||
checkController.getChecks
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user