Skip to main content

recent

Function recent 

Source
pub async fn recent(
    db: &Db,
    limit: i64,
    model_filter: Option<&str>,
    action_filter: Option<&str>,
    user_filter: Option<i64>,
) -> Result<Vec<AdminAction>>
Expand description

Fetch the most recent limit admin actions, newest first.

Each Option filter narrows the WHERE clause when set: model_filter matches model_name exactly; action_filter matches action_type exactly; user_filter matches the actor’s user_id. All filters compose with AND.