Skip to main content

send_test

Function send_test 

Source
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 ping delivery (it does not go through emit).
  • Atomic: one transaction.