fix query param
This commit is contained in:
1 parent
3cf7243c93
commit
7afdcb8ebc
2 files changed
+1
-2
No files matched your search
@@ -19,7 +19,7 @@ class IncidentController {
|
|||||||
try {
|
try {
|
||||||
const result = await this.incidentService.getIncidentsByTeam({
|
const result = await this.incidentService.getIncidentsByTeam({
|
||||||
teamId: req?.user?.teamId,
|
teamId: req?.user?.teamId,
|
||||||
query: req?.query?.limit,
|
query: req?.query,
|
||||||
});
|
});
|
||||||
|
|
||||||
return res.status(200).json({
|
return res.status(200).json({
|
||||||
|
|||||||
@@ -134,7 +134,6 @@ class IncidentService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const { sortOrder, dateRange, page, rowsPerPage, status, monitorId, resolutionType } = query || {};
|
const { sortOrder, dateRange, page, rowsPerPage, status, monitorId, resolutionType } = query || {};
|
||||||
|
|
||||||
const startDate = dateRangeLookup[dateRange];
|
const startDate = dateRangeLookup[dateRange];
|
||||||
|
|
||||||
const parsedPage = Number.isFinite(parseInt(page)) ? parseInt(page) : 0;
|
const parsedPage = Number.isFinite(parseInt(page)) ? parseInt(page) : 0;
|
||||||
|
|||||||
Reference in new issue
Block a user