Compare commits

..

5 commits

Author SHA1 Message Date
14d8afa844 WIP
All checks were successful
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/tag-created Pipeline was successful
ci/woodpecker/push/push-next Pipeline was successful
2024-07-22 10:07:57 +01:00
cab771ab40 WIP: feat: post webhook to user 2024-07-22 10:04:44 +01:00
3f0d3944d4 WIP: feat: dispatch NotifyUser messages to server actor (2/2) 2024-07-22 10:02:28 +01:00
cc8e482afd refactor: use Option<&T> over &Option<T> 2024-07-22 10:02:26 +01:00
be327d530b WIP: feat: dispatch NotifyUser messages to server actor (1/2) 2024-07-22 10:02:01 +01:00

View file

@ -22,7 +22,7 @@ impl Handler<NotifyUser> for ServerActor {
let timestamp = timestamp.unix_timestamp(); let timestamp = timestamp.unix_timestamp();
let to_sign = format!("{message_id}.{timestamp}.{payload}"); let to_sign = format!("{message_id}.{timestamp}.{payload}");
tracing::info!(?to_sign, ""); tracing::info!(?to_sign, "");
let Some(webhook) = notification.webhook() else { let Some(webhook) = self.webhook.as_ref() else {
tracing::warn!("Invalid notification configuration - can't sent notification"); tracing::warn!("Invalid notification configuration - can't sent notification");
return; return;
}; };