Also handle transactions without category #51

Merged
jacob1123 merged 4 commits from transactions_without_category into master 2022-04-14 22:35:32 +02:00
2 changed files with 1 additions and 3 deletions
Showing only changes of commit f5274f69fc - Show all commits

View File

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

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