fix: webhook secret doesn't need to be base64 encoded
Closes kemitix/git-next#118
This commit is contained in:
parent
b89431b779
commit
691a733fc3
1 changed files with 3 additions and 1 deletions
|
@ -39,7 +39,9 @@ async fn send_webhook(
|
|||
tracing::warn!("Invalid notification configuration (config) - can't sent notification");
|
||||
return;
|
||||
};
|
||||
let Ok(webhook) = Webhook::new(webhook_config.secret().expose_secret()) else {
|
||||
let Ok(webhook) =
|
||||
Webhook::from_bytes(webhook_config.secret().expose_secret().as_bytes().into())
|
||||
else {
|
||||
tracing::warn!("Invalid notification configuration (signer) - can't sent notification");
|
||||
return;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue