Return all transactions until paging is implemented

This commit is contained in:
Jan Bader 2022-04-14 20:33:39 +00:00
parent c50fc63303
commit f5274f69fc
2 changed files with 1 additions and 3 deletions

View File

@ -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

View File

@ -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) {