mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-05-19 07:58:46 -05:00
fix query param
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user