IO-1366 Audit Logging for Production Alert

This commit is contained in:
Allan Carr
2023-12-20 11:36:42 -08:00
parent 92c8b54f85
commit 1ff5ed4141
6 changed files with 39 additions and 3 deletions

View File

@@ -108,6 +108,14 @@ export function JobsDetailHeaderActions({
},
},
});
insertAuditTrail({
jobid: job.id,
operation: AuditTrailMapping.alertToggle(
!!job.production_vars && !!job.production_vars.alert
? !job.production_vars.alert
: true
),
});
};
const handleSuspend = (e) => {