diff --git a/daemon/Cargo.toml b/daemon/Cargo.toml index 6b11084..979f943 100644 --- a/daemon/Cargo.toml +++ b/daemon/Cargo.toml @@ -2,6 +2,7 @@ name = "rayhunter-daemon" version = "0.5.1" edition = "2024" +rust-version = "1.88" [dependencies] rayhunter = { path = "../lib" } diff --git a/daemon/src/notifications.rs b/daemon/src/notifications.rs index 8b1b05c..b3c801c 100644 --- a/daemon/src/notifications.rs +++ b/daemon/src/notifications.rs @@ -54,9 +54,9 @@ pub fn run_notification_worker( mut notification_service: NotificationService, ) { task_tracker.spawn(async move { - let channel_name = notification_service.channel_name.unwrap_or("".into()); - - if !channel_name.is_empty() { + if let Some(url) = notification_service.url + && !url.is_empty() + { let mut notification_statuses = HashMap::new(); let http_client = reqwest::Client::new();