From c34d53b775f5ca200e80033b3fcf3534e9652077 Mon Sep 17 00:00:00 2001 From: Lucas Magnus Date: Fri, 15 Sep 2023 11:33:19 -0300 Subject: [PATCH] feat: change limit latest transactions --- backend/internal/usecase/repo/log_transaction_postgres.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/backend/internal/usecase/repo/log_transaction_postgres.go b/backend/internal/usecase/repo/log_transaction_postgres.go index a3e33fb3..ef76017d 100644 --- a/backend/internal/usecase/repo/log_transaction_postgres.go +++ b/backend/internal/usecase/repo/log_transaction_postgres.go @@ -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)