diff --git a/README.md b/README.md
index df52e78c6..84874ea40 100644
--- a/README.md
+++ b/README.md
@@ -47,7 +47,7 @@ You can see the designs [here](https://www.figma.com/design/RPSfaw66HjzSwzntKcgD
- POST [/api/v1/auth/recovery/reset](#post-auth-recovery-reset-id)
###### Monitors
- GET [/api/v1/monitors](#get-monitors)
- - GET [/api/v1/monitor/{id}?limit](#get-monitor-id)
+ - GET [/api/v1/monitor/{id}](#get-monitor-id)
- GET [/api/v1/monitors/user/{userId}](#get-monitors-user-userid)
- POST [/api/v1/monitors](#post-monitors)
- POST [/api/v1/monitors/delete/{monitorId}](#post-monitors-del-id)
@@ -678,7 +678,7 @@ curl --request GET \
-GET /api/v1/monitor/{id}?limit
+GET /api/v1/monitor/{id}
###### Method/Headers
@@ -696,7 +696,7 @@ curl --request GET \
```
curl --request GET \
- --url http://localhost:5000/api/v1/monitors/664d070786e62625ac612ca1?limit=25 \
+ --url http://localhost:5000/api/v1/monitors/664d070786e62625ac612ca1 \
--header '' \
```
diff --git a/Server/controllers/checkController.js b/Server/controllers/checkController.js
index 3014937fb..391ae2700 100644
--- a/Server/controllers/checkController.js
+++ b/Server/controllers/checkController.js
@@ -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 });
diff --git a/Server/routes/checkRoute.js b/Server/routes/checkRoute.js
index a8687cff1..6569dd49a 100644
--- a/Server/routes/checkRoute.js
+++ b/Server/routes/checkRoute.js
@@ -10,7 +10,7 @@ router.post(
);
router.get(
- "/:monitorId?limit",
+ "/:monitorId",
verifyOwnership(Monitor, "monitorId"),
checkController.getChecks
);