pub async fn send_test(
pool: &PgPool,
actor: &Actor,
id: Uuid,
) -> AppResult<Uuid>Expand description
Queues a ping delivery to an active webhook; returns its id (the
caller may send it at once with Dispatcher::deliver_now).
§Invariants
- Permission: administrator (403); unknown webhook is “not found”; an inactive webhook is refused (409).
- Locks: the webhook row (
FOR UPDATE). - Audit:
webhook.test. - Notifications / webhooks: inserts one pending
pingdelivery (it does not go throughemit). - Atomic: one transaction.