add total_rows

This commit is contained in:
Bryan Stitt 2022-12-14 11:21:56 -08:00
parent 6f618bbcda
commit 284eec360b

@ -264,6 +264,10 @@ pub async fn query_user_stats<'a>(
let q = rpc_accounting::Entity::find()
.select_only()
.column_as(
rpc_accounting::Column::FrontendRequests.count(),
"total_rows",
)
.column_as(
rpc_accounting::Column::FrontendRequests.sum(),
"total_frontend_requests",