Refactor FE to use new query

This commit is contained in:
Alex Holliday committed 2024-12-31 20:00:22 -08:00
1 parent a3518e4462
commit f176768b54
3 files changed
+113 -57

No files matched your search

+14
View File
@@ -242,6 +242,20 @@ class NetworkService {
);
}
async getHardwareDetailsByMonitorId(config) {
const params = new URLSearchParams();
if (config.dateRange) params.append("dateRange", config.dateRange);
return this.axiosInstance.get(
`/monitors/hardware/details/${config.monitorId}?${params.toString()}`,
{
headers: {
Authorization: `Bearer ${config.authToken}`,
},
}
);
}
/**
* ************************************
* Updates a single monitor