Merge pull request #324 from bluewave-labs/fix/get-monitors-by-user

Fixed non functioning code
This commit is contained in:
Alexander Holliday authored and GitHub committed 2024-07-12 11:22:34 -07:00
commit 9867089c73
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) {