fix query param

This commit is contained in:
Alex Holliday
2026-01-20 19:01:50 +00:00
parent 3cf7243c93
commit 7afdcb8ebc
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ class IncidentController {
try {
const result = await this.incidentService.getIncidentsByTeam({
teamId: req?.user?.teamId,
query: req?.query?.limit,
query: req?.query,
});
return res.status(200).json({
@@ -134,7 +134,6 @@ class IncidentService {
}
const { sortOrder, dateRange, page, rowsPerPage, status, monitorId, resolutionType } = query || {};
const startDate = dateRangeLookup[dateRange];
const parsedPage = Number.isFinite(parseInt(page)) ? parseInt(page) : 0;