Refactored remaining requests

This commit is contained in:
Alex Holliday committed 2024-08-18 17:18:16 -07:00
1 parent f78e5ca94c
commit 92877e20ec
10 files changed
+174 -66

No files matched your search

+8 -7
View File
@@ -48,13 +48,14 @@ const Incidents = () => {
useEffect(() => {
const fetchMonitors = async () => {
setLoading(true);
const res = await axiosInstance.get(
`/monitors/user/${authState.user._id}?status=false&limit=1`,
{
headers: {
Authorization: `Bearer ${authState.authToken}`,
},
}
const res = await axiosInstance.getMonitorsByUserId(
authState.authToken,
authState.user._id,
1,
null,
null,
null,
null
);
// Reduce to a lookup object for 0(1) lookup