From 284eec360b350ddde76a87c6d1050d2268917e49 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Wed, 14 Dec 2022 11:21:56 -0800 Subject: [PATCH] add total_rows --- web3_proxy/src/user_queries.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web3_proxy/src/user_queries.rs b/web3_proxy/src/user_queries.rs index 4745135e..b15ea1e2 100644 --- a/web3_proxy/src/user_queries.rs +++ b/web3_proxy/src/user_queries.rs @@ -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",