Also handle transactions without category #51
@ -34,8 +34,7 @@ WHERE t.budget_id = $1;
|
|||||||
-- name: GetTransactionsForAccount :many
|
-- name: GetTransactionsForAccount :many
|
||||||
SELECT t.*
|
SELECT t.*
|
||||||
FROM display_transactions AS t
|
FROM display_transactions AS t
|
||||||
WHERE t.account_id = $1
|
WHERE t.account_id = $1;
|
||||||
LIMIT 200;
|
|
||||||
|
|
||||||
-- name: DeleteAllTransactions :execrows
|
-- name: DeleteAllTransactions :execrows
|
||||||
DELETE FROM transactions
|
DELETE FROM transactions
|
||||||
|
@ -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
|
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
|
FROM display_transactions AS t
|
||||||
WHERE t.account_id = $1
|
WHERE t.account_id = $1
|
||||||
LIMIT 200
|
|
||||||
`
|
`
|
||||||
|
|
||||||
func (q *Queries) GetTransactionsForAccount(ctx context.Context, accountID uuid.UUID) ([]DisplayTransaction, error) {
|
func (q *Queries) GetTransactionsForAccount(ctx context.Context, accountID uuid.UUID) ([]DisplayTransaction, error) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user