undo changes

This commit is contained in:
MuhammadKhalilzadeh committed 2024-07-11 09:29:33 +03:30
1 parent 1a15c0c9b3
commit e7ea80f820
3 files changed
+5 -10

No files matched your search

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