Add status param to getChecks requests

This commit is contained in:
Alex Holliday committed 2025-01-27 09:36:39 -08:00
1 parent ec3b89d150
commit d65a5d001a
1 file changed
+2
+2
View File
@@ -614,6 +614,7 @@ class NetworkService {
if (config.filter) params.append("filter", config.filter);
if (config.page) params.append("page", config.page);
if (config.rowsPerPage) params.append("rowsPerPage", config.rowsPerPage);
if (config.status !== undefined) params.append("status", config.status);
return this.axiosInstance.get(`/checks/${config.monitorId}?${params.toString()}`, {
headers: { Authorization: `Bearer ${config.authToken}` },
@@ -646,6 +647,7 @@ class NetworkService {
if (config.filter) params.append("filter", config.filter);
if (config.page) params.append("page", config.page);
if (config.rowsPerPage) params.append("rowsPerPage", config.rowsPerPage);
if (config.status !== undefined) params.append("status", config.status);
return this.axiosInstance.get(`/checks/team/${config.teamId}?${params.toString()}`, {
headers: { Authorization: `Bearer ${config.authToken}` },
});