File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/fasset-indexer-api/src/analytics Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -494,11 +494,11 @@ export class DashboardAnalytics extends SharedAnalytics {
494494 . where ( { 'bl.timestamp' : { $gte : from , $lt : to } } )
495495 . groupBy ( [ 'ubc.fasset' , 'ubc.agentVault' ] )
496496 . getKnexQuery ( )
497- const mainQuery = knex
497+ const mainquery = knex
498498 . from ( knex . raw ( '(?) as sub' , [ subquery ] ) )
499499 . select ( [ 'sub.fasset' , knex . raw ( 'sum(sub.agent_balance) as total_agent_balance' ) ] )
500500 . groupBy ( 'sub.fasset' )
501- const { sql, bindings } = mainQuery . toSQL ( )
501+ const { sql, bindings } = mainquery . toSQL ( )
502502 const result = await em . getConnection ( ) . execute ( sql , bindings as any ) as {
503503 fasset : FAssetType , total_agent_balance : string } [ ]
504504 return this . convertOrmResultToFAssetValueResult ( result , 'total_agent_balance' )
You can’t perform that action at this time.
0 commit comments