Merge pull request #734 from bluewave-labs/fix/team-checks

Fix/team checks
This commit is contained in:
Alexander Holliday authored and GitHub committed 2024-08-27 15:42:04 -07:00
commit f10ac975d1
10 files changed
+26 -33

No files matched your search

@@ -46,9 +46,9 @@ const IncidentTable = ({ monitors, selectedMonitor, filter }) => {
try {
let res;
if (selectedMonitor === "0") {
res = await networkService.getChecksByUser(
res = await networkService.getChecksByTeam(
authToken,
user._id,
user.teamId,
"desc",
null,
null,
+1 -2
View File
@@ -50,14 +50,13 @@ const Incidents = () => {
setLoading(true);
const res = await networkService.getMonitorsByTeamId(
authState.authToken,
authState.user._id,
authState.user.teamId,
1,
null,
null,
null,
null
);
// 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) => {
@@ -122,7 +122,6 @@ const CreateMonitor = () => {
userId: user._id,
notifications: monitor.notifications,
};
console.log(form);
const action = await dispatch(
createUptimeMonitor({ authToken, monitor: form })
);