Remove logging left from previous commit #38
@ -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 {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user