Skip to main content

fire_webhooks

Function fire_webhooks 

Source
pub fn fire_webhooks(db: &Database, event: &str, payload: Value)
Expand description

Fire webhooks for a given event. Sends HTTP POST to each matching active webhook. Uses HMAC-SHA256 to sign the payload if the webhook has a secret. Runs asynchronously via tokio::spawn — does not block the caller.