Remove logging left from previous commit
All checks were successful
Go / build (1.21) (push) Successful in 12s
Go / build (1.22) (push) Successful in 10s

This commit is contained in:
Luís Murta 2025-04-12 22:19:04 +01:00
parent 6a854b541a
commit 0347a615ac
Signed by: satprog
GPG Key ID: 169EF1BBD7049F94

View File

@ -52,8 +52,8 @@ func (dal *DalImpl) Transactions(limit, offset int, category *string) (entity.Tr
SELECT t.id, t.date, t.description, t.amount, tc.name
FROM pfbudget.transactions t
LEFT JOIN pfbudget.transactions_categorized tc
ON t.id = tc.id
`
ON t.id = tc.id`
args := []any{limit, offset}
if category != nil {
@ -63,9 +63,7 @@ func (dal *DalImpl) Transactions(limit, offset int, category *string) (entity.Tr
stmt += `
ORDER BY t.date DESC
LIMIT $1
OFFSET $2
`
log.Print(stmt, args)
OFFSET $2`
rows, err := dal.Db.Query(stmt, args...)
if err != nil {