Skip to main content

send_test

Function send_test 

Source
pub async fn send_test(pool: &PgPool, actor: &Actor) -> AppResult<()>
Expand description

Sends a test notification to the actor (checks e-mail and Mattermost).

§Invariants

  • Permission: any signed-in actor; the actor is the only recipient.
  • Locks: none.
  • Data: the test kind is delivered even if the actor muted kinds; e-mail and Mattermost delivery are queued per the actor’s settings.
  • Audit: none.
  • Webhooks: none.
  • Atomic: one transaction.