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

This commit is contained in:
Luís Murta 2025-04-12 22:19:04 +01:00
parent 633be8c233
commit 6c60ca55df
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 SELECT t.id, t.date, t.description, t.amount, tc.name
FROM pfbudget.transactions t FROM pfbudget.transactions t
LEFT JOIN pfbudget.transactions_categorized tc LEFT JOIN pfbudget.transactions_categorized tc
ON t.id = tc.id ON t.id = tc.id`
`
args := []any{limit, offset} args := []any{limit, offset}
if category != nil { if category != nil {
@ -63,9 +63,7 @@ func (dal *DalImpl) Transactions(limit, offset int, category *string) (entity.Tr
stmt += ` stmt += `
ORDER BY t.date DESC ORDER BY t.date DESC
LIMIT $1 LIMIT $1
OFFSET $2 OFFSET $2`
`
log.Print(stmt, args)
rows, err := dal.Db.Query(stmt, args...) rows, err := dal.Db.Query(stmt, args...)
if err != nil { if err != nil {