Skip to content

Commit

Permalink
Merge pull request #94 from nautls/fix-tx-ordering
Browse files Browse the repository at this point in the history
Fix transaction ordering
  • Loading branch information
arobsn authored Nov 6, 2024
2 parents 9284919 + 7fa8954 commit ccc2059
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ergo-graphql/server",
"version": "0.5.2",
"version": "0.5.1",
"description": "Ergo GraphQL server",
"main": "src/index.ts",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/context/transactions-repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class TransactionRepository extends BaseRepository<TransactionEntity> {
constructor(context: RepositoryDataContext) {
super(TransactionEntity, "tx", {
context,
defaults: { where: { mainChain: true }, orderBy: { globalIndex: "DESC" } }
defaults: { where: { mainChain: true }, orderBy: { timestamp: "DESC" } }
});
}

Expand Down

0 comments on commit ccc2059

Please sign in to comment.