Small fixes for ynab import

This commit is contained in:
2021-12-02 16:22:27 +00:00
parent e9173a3d37
commit 61c55dda3a
5 changed files with 48 additions and 11 deletions

View File

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