Refactor getChecksByUserId to getChecksByTeamId

This commit is contained in:
Alex Holliday committed 2024-08-27 12:22:32 -07:00
1 parent c8c2dfe9ec
commit eedc6bbed6
8 files changed
+27 -31

No files matched your search

+2 -2
View File
@@ -50,14 +50,14 @@ const Incidents = () => {
setLoading(true);
const res = await networkService.getMonitorsByTeamId(
authState.authToken,
authState.user._id,
authState.user.teamId,
1,
null,
null,
null,
null
);
console.log(res);
// Reduce to a lookup object for 0(1) lookup
if (res.data && res.data.data.length > 0) {
const monitorLookup = res.data.data.reduce((acc, monitor) => {