diff --git a/src/webhook.rs b/src/webhook.rs index 11f6976..0983d17 100644 --- a/src/webhook.rs +++ b/src/webhook.rs @@ -1,4 +1,5 @@ -use std::{process::Command, sync::Arc}; +use std::sync::Arc; +use tokio::process::Command; use tracing::{error, info}; use crate::{config, db, mailer::Mailer, states}; @@ -23,6 +24,7 @@ impl Task { .args(&self.hook.args) .current_dir(&self.hook.current_dir) .output() + .await { Ok(output) => { stdout = output.stdout;