parse query

This commit is contained in:
Alex Holliday committed 2026-01-21 10:15:13 -08:00
1 parent 3fa370765e
commit ef61a63da0
2 files changed
+24 -7

No files matched your search

+10 -2
View File
@@ -124,13 +124,21 @@ class IncidentService {
}
};
getIncidentsByTeam = async ({ teamId, query }: { teamId: string; query?: any }) => {
getIncidentsByTeam = async (
teamId: string,
sortOrder: string,
dateRange: string,
page: string,
rowsPerPage: string,
status: string,
monitorId: string,
resolutionType: string
) => {
try {
if (!teamId) {
throw this.errorService.createBadRequestError("No team ID in request");
}
const { sortOrder, dateRange, page, rowsPerPage, status, monitorId, resolutionType } = query || {};
const startDate = dateRangeLookup[dateRange];
const parsedPage = Number.isFinite(parseInt(page)) ? parseInt(page) : 0;