sqldb: remove unused preimage query parameter

This commit is contained in:
Andras Banki-Horvath 2024-12-02 19:13:19 +01:00
parent b7d743929d
commit d65b630568
No known key found for this signature in database
GPG Key ID: 80E5375C094198D8
2 changed files with 1 additions and 9 deletions

View File

@ -191,11 +191,8 @@ WHERE (
i.hash = $3 OR
$3 IS NULL
) AND (
i.preimage = $4 OR
i.payment_addr = $4 OR
$4 IS NULL
) AND (
i.payment_addr = $5 OR
$5 IS NULL
)
GROUP BY i.id
LIMIT 2
@ -205,7 +202,6 @@ type GetInvoiceParams struct {
SetID []byte
AddIndex sql.NullInt64
Hash []byte
Preimage []byte
PaymentAddr []byte
}
@ -217,7 +213,6 @@ func (q *Queries) GetInvoice(ctx context.Context, arg GetInvoiceParams) ([]Invoi
arg.SetID,
arg.AddIndex,
arg.Hash,
arg.Preimage,
arg.PaymentAddr,
)
if err != nil {

View File

@ -47,9 +47,6 @@ WHERE (
) AND (
i.hash = sqlc.narg('hash') OR
sqlc.narg('hash') IS NULL
) AND (
i.preimage = sqlc.narg('preimage') OR
sqlc.narg('preimage') IS NULL
) AND (
i.payment_addr = sqlc.narg('payment_addr') OR
sqlc.narg('payment_addr') IS NULL