Small fixes for ynab import
This commit is contained in:
@ -7,8 +7,10 @@ RETURNING *;
|
||||
-- name: GetTransactionsForBudget :many
|
||||
SELECT transactions.* FROM transactions
|
||||
LEFT JOIN accounts ON accounts.id = transactions.account_id
|
||||
WHERE accounts.budget_id = $1;
|
||||
WHERE accounts.budget_id = $1
|
||||
ORDER BY transactions.date DESC;
|
||||
|
||||
-- name: GetTransactionsForAccount :many
|
||||
SELECT transactions.* FROM transactions
|
||||
WHERE transactions.account_id = $1;
|
||||
WHERE transactions.account_id = $1
|
||||
ORDER BY transactions.date DESC;
|
Reference in New Issue
Block a user