Skip to content

Commit 9fb92c8

Browse files
update audit log to track aproval and cancellation of job (#5151)
* update audit log to track aproval and cancellation of job * approval to resource field * audit resource as json --------- Co-authored-by: Ruben Fiszel <ruben@windmill.dev>
1 parent 8daec06 commit 9fb92c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/windmill-api/src/jobs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1979,7 +1979,7 @@ async fn resume_suspended_job_internal(
19791979
"jobs.approved",
19801980
ActionKind::Update,
19811981
&w_id,
1982-
Some(&job_id.to_string()),
1982+
Some(&serde_json::json!({"approved": approved, "job_id": job_id}).to_string()),
19831983
None,
19841984
)
19851985
.await?;

0 commit comments

Comments
 (0)