Skip to main content

recent

Function recent 

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

Fetch the most recent limit admin actions, newest first. Optional filters by model_name and by action_type string (the UI passes both through as URL query params, so we take them as &str rather than typed enums).