Update telemetry
This commit is contained in:
@@ -57,6 +57,7 @@ pub async fn admin_dashboard(
|
||||
Ok(Html(template.render().unwrap()).into_response())
|
||||
}
|
||||
|
||||
#[tracing::instrument("Computing dashboard stats", skip_all)]
|
||||
async fn get_stats(connection_pool: &PgPool) -> Result<DashboardStats, anyhow::Error> {
|
||||
let subscribers =
|
||||
sqlx::query_scalar!("SELECT count(*) FROM subscriptions WHERE status = 'confirmed'")
|
||||
|
||||
Reference in New Issue
Block a user