pub async fn dismiss_attention(
conn: &mut PgConnection,
credit_registration_id: Uuid,
reasons: &[AttentionReason],
dismissed_by_user_id: Uuid,
reason: &str,
) -> ModelResult<Uuid>Expand description
Takes a row off the queue for as long as it carries only reasons, replacing any earlier
dismissal of it. Call in the transaction that records the audit action.