Skip to content

Commit

Permalink
feat: change limit latest transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmagnus committed Sep 15, 2023
1 parent 73c4836 commit c34d53b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions backend/internal/usecase/repo/log_transaction_postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,7 @@ func (repo *LogTransactionRepo) GetLastLogTransactions(transactionTypeID int) ([
lt.origin_pk, lt.destination_pk, lt.current_supply, lt.current_main_vault
FROM logtransactions AS lt
JOIN Asset AS a ON lt.asset_id = a.id
WHERE lt.transaction_type_id = $1
ORDER BY lt.date DESC
LIMIT 5
`

rows, err := repo.Db.Query(query, transactionTypeID)
Expand Down

0 comments on commit c34d53b

Please sign in to comment.