Fixed non functioning code

This commit is contained in:
Alex Holliday committed 2024-07-12 10:24:46 -07:00
1 parent 7462458eca
commit 12e85aed03
3 files changed
+16 -13

No files matched your search

@@ -50,11 +50,14 @@ export const getMonitorsByUserId = createAsyncThunk(
async (token, thunkApi) => {
const user = jwtDecode(token);
try {
const res = await axiosInstance.get("/monitors/user/" + user._id, {
headers: {
Authorization: `Bearer ${token}`,
},
});
const res = await axiosInstance.get(
`/monitors/user/${user._id}?limit=25`,
{
headers: {
Authorization: `Bearer ${token}`,
},
}
);
return res.data;
} catch (error) {
if (error.response && error.response.data) {