Skip to content

Commit 1460446

Browse files
committed
Fix dbGetAllByOwner
1 parent 059b283 commit 1460446

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/code/data/intent/postgres/model.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ func dbGetAllByOwner(ctx context.Context, db *sqlx.DB, owner string, cursor q.Cu
221221

222222
query := `SELECT id, intent_id, intent_type, owner, source, destination_owner, destination, quantity, exchange_currency, exchange_rate, native_amount, usd_market_value, is_withdraw, is_deposit, is_remote_send, is_returned, is_issuer_voiding_gift_card, is_micro_payment, extended_metadata, state, created_at
223223
FROM ` + intentTableName + `
224-
WHERE owner = $1 OR destination_owner = $1
224+
WHERE (owner = $1 OR destination_owner = $1)
225225
`
226226

227227
opts := []any{owner}

0 commit comments

Comments
 (0)