File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -5542,14 +5542,14 @@ export class PgDataStore
5542
5542
// join against `txs` to get the full transaction objects only for that page.
5543
5543
`
5544
5544
WITH stx_txs AS (
5545
- SELECT tx_id
5545
+ SELECT tx_id, ${ countOverColumn ( ) }
5546
5546
FROM principal_stx_txs
5547
5547
WHERE principal = $1 AND ${ blockCond }
5548
5548
ORDER BY block_height DESC, microblock_sequence DESC, tx_index DESC
5549
5549
LIMIT $2
5550
5550
OFFSET $3
5551
5551
)
5552
- SELECT ${ txColumns ( ) } , ${ abiColumn ( ) } , ${ countOverColumn ( ) }
5552
+ SELECT ${ txColumns ( ) } , ${ abiColumn ( ) } , count
5553
5553
FROM stx_txs
5554
5554
INNER JOIN txs
5555
5555
ON (stx_txs.tx_id = txs.tx_id
Original file line number Diff line number Diff line change @@ -4933,7 +4933,7 @@ describe('api tests', () => {
4933
4933
const expectedResp4 = {
4934
4934
limit : 20 ,
4935
4935
offset : 0 ,
4936
- total : 5 ,
4936
+ total : 6 ,
4937
4937
results : [
4938
4938
{
4939
4939
tx_id : '0x12340005' ,
@@ -5592,7 +5592,7 @@ describe('api tests', () => {
5592
5592
) ;
5593
5593
expect ( unanchoredResult . status ) . toBe ( 200 ) ;
5594
5594
expect ( unanchoredResult . type ) . toBe ( 'application/json' ) ;
5595
- expect ( JSON . parse ( unanchoredResult . text ) . total ) . toEqual ( 50 ) ; // 60 txs up to unanchored block_height=3
5595
+ expect ( JSON . parse ( unanchoredResult . text ) . total ) . toEqual ( 60 ) ; // 60 txs up to unanchored block_height=3
5596
5596
expect ( JSON . parse ( unanchoredResult . text ) . results . length ) . toEqual ( 50 ) ;
5597
5597
} ) ;
5598
5598
Original file line number Diff line number Diff line change @@ -975,7 +975,7 @@ describe('postgres datastore', () => {
975
975
atSingleBlock : false ,
976
976
} ) ;
977
977
978
- expect ( addrEResult . total ) . toBe ( 3 ) ;
978
+ expect ( addrEResult . total ) . toBe ( 5 ) ;
979
979
980
980
const mapAddrTxResults = ( txs : DbTx [ ] ) => {
981
981
return txs . map ( tx => ( {
@@ -1129,8 +1129,8 @@ describe('postgres datastore', () => {
1129
1129
atSingleBlock : false ,
1130
1130
} ) ;
1131
1131
1132
- expect ( addrAAtBlockResult . total ) . toBe ( 3 ) ;
1133
- expect ( addrAAllBlockResult . total ) . toBe ( 7 ) ;
1132
+ expect ( addrAAtBlockResult . total ) . toBe ( 4 ) ;
1133
+ expect ( addrAAllBlockResult . total ) . toBe ( 9 ) ;
1134
1134
} ) ;
1135
1135
1136
1136
test ( 'pg get address asset events' , async ( ) => {
You can’t perform that action at this time.
0 commit comments