From f5274f69fcccd2a932730068cd413945607064c0 Mon Sep 17 00:00:00 2001 From: Jan Bader Date: Thu, 14 Apr 2022 20:33:39 +0000 Subject: [PATCH] Return all transactions until paging is implemented --- postgres/queries/transactions.sql | 3 +-- postgres/transactions.sql.go | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/postgres/queries/transactions.sql b/postgres/queries/transactions.sql index 562b391..2376d0b 100644 --- a/postgres/queries/transactions.sql +++ b/postgres/queries/transactions.sql @@ -34,8 +34,7 @@ WHERE t.budget_id = $1; -- name: GetTransactionsForAccount :many SELECT t.* FROM display_transactions AS t -WHERE t.account_id = $1 -LIMIT 200; +WHERE t.account_id = $1; -- name: DeleteAllTransactions :execrows DELETE FROM transactions diff --git a/postgres/transactions.sql.go b/postgres/transactions.sql.go index 68ec37c..cdab72a 100644 --- a/postgres/transactions.sql.go +++ b/postgres/transactions.sql.go @@ -183,7 +183,6 @@ const getTransactionsForAccount = `-- name: GetTransactionsForAccount :many SELECT t.id, t.date, t.memo, t.amount, t.group_id, t.status, t.account, t.payee_id, t.category_id, t.payee, t.category_group, t.category, t.transfer_account, t.budget_id, t.account_id FROM display_transactions AS t WHERE t.account_id = $1 -LIMIT 200 ` func (q *Queries) GetTransactionsForAccount(ctx context.Context, accountID uuid.UUID) ([]DisplayTransaction, error) {