From f98c199b63b4428532c2710a0d19215cccd4abbf Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Tue, 4 Jul 2023 22:13:01 +0200 Subject: [PATCH] fix: fix global error handler --- backend/windmill-queue/src/jobs.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/windmill-queue/src/jobs.rs b/backend/windmill-queue/src/jobs.rs index 6584e31314..b93c6011ae 100644 --- a/backend/windmill-queue/src/jobs.rs +++ b/backend/windmill-queue/src/jobs.rs @@ -392,7 +392,7 @@ pub async fn send_error_to_global_handler = (rsmq, db.begin().await?).into(); let (job_payload, tag) = - script_path_to_payload(&global_error_handler, tx.transaction_mut(), &w_id).await?; + script_path_to_payload(&global_error_handler, tx.transaction_mut(), "admins").await?; let mut args = result.as_object().unwrap().clone(); args.insert("workspace_id".to_string(), json!(w_id)); args.insert("job_id".to_string(), json!(job_id)); @@ -402,7 +402,7 @@ pub async fn send_error_to_global_handler