Renaming the variable

This commit is contained in:
MuhammadKhalilzadeh committed 2024-07-08 22:55:23 +03:30
1 parent 3e6b9049ec
commit 7db5433361
2 files changed
+6 -6

No files matched your search

+3 -3
View File
@@ -42,13 +42,13 @@ const getChecks = async (req, res, next) => {
return;
}
let limitedTo = null;
let limit = null;
try {
if (req.query && req.query.limit) {
limitedTo = parseInt(req.query.limit);
limit = parseInt(req.query.limit);
}
const checks = await req.db.getChecks(req.params.monitorId, limitedTo);
const checks = await req.db.getChecks(req.params.monitorId, limit);
return res
.status(200)
.json({ success: true, msg: successMessages.CHECK_GET, data: checks });