Skip to content

Commit 8c42ccb

Browse files
committed
fix: order by height and timestamp
1 parent 07d4a47 commit 8c42ccb

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/context/transactions-repository.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ export class TransactionRepository extends BaseRepository<TransactionEntity> {
1818
constructor(context: RepositoryDataContext) {
1919
super(TransactionEntity, "tx", {
2020
context,
21-
defaults: { where: { mainChain: true }, orderBy: { timestamp: "DESC" } }
21+
defaults: {
22+
where: { mainChain: true },
23+
orderBy: { inclusionHeight: "DESC", timestamp: "DESC" }
24+
}
2225
});
2326
}
2427

0 commit comments

Comments
 (0)