From 71277791825b4f853025498df87553fdd7bf4e38 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Fri, 4 Nov 2022 19:01:17 +0000 Subject: [PATCH] query_window -> query_window_timestamp --- TODO.md | 1 + web3_proxy/src/user_queries.rs | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/TODO.md b/TODO.md index 4a02a0fc..f7700d9c 100644 --- a/TODO.md +++ b/TODO.md @@ -227,6 +227,7 @@ These are roughly in order of completition - [ ] instead of configuring each cache with MB sizes, have one value for total memory footprint and then percentages for each cache - [ ] proper authentication on rpc_key_id - we have bearer token auth for user_id, but rpc_key_id needs more code +- [ ] fix tests ## V1 diff --git a/web3_proxy/src/user_queries.rs b/web3_proxy/src/user_queries.rs index d59dbd59..6e0b287d 100644 --- a/web3_proxy/src/user_queries.rs +++ b/web3_proxy/src/user_queries.rs @@ -193,10 +193,10 @@ pub fn filter_query_window_seconds( ); let q = q - .column_as(expr, "query_window") - .group_by(Expr::cust("query_window")) + .column_as(expr, "query_window_timestamp") + .group_by(Expr::cust("query_window_timestamp")) // TODO: is there a simpler way to order_by? - .order_by_asc(SimpleExpr::Custom("query_window".to_string())); + .order_by_asc(SimpleExpr::Custom("query_window_timestamp".to_string())); Ok(q) }