Skip to main content

personal_usage

Function personal_usage 

Source
pub async fn personal_usage(
    pool: &Pool,
    person: &str,
    team: Option<String>,
    from: DateTime<Utc>,
    to: DateTime<Utc>,
) -> Result<MeUsageResponse>
Expand description

Runs the person-scoped queries and assembles the response.

ยงErrors

Propagates pool/query errors (the handler maps them to 503).