mirror of
https://github.com/getAlby/hub.git
synced 2026-08-13 12:33:39 +02:00
fix: check description first when creating invoice with phoenixd (#1540)
Modified MakeInvoice in phoenixd.go to check description first (instead of descriptionHash)
This commit is contained in:
parent
d66b355d73
commit
5d11b30de5
1 changed files with 3 additions and 3 deletions
|
|
@ -283,10 +283,10 @@ func (svc *PhoenixService) MakeInvoice(ctx context.Context, amount int64, descri
|
|||
form := url.Values{}
|
||||
amountSat := strconv.FormatInt(amount/1000, 10)
|
||||
form.Add("amountSat", amountSat)
|
||||
if descriptionHash != "" {
|
||||
form.Add("descriptionHash", descriptionHash)
|
||||
} else if description != "" {
|
||||
if description != "" {
|
||||
form.Add("description", description)
|
||||
} else if descriptionHash != "" {
|
||||
form.Add("descriptionHash", descriptionHash)
|
||||
} else {
|
||||
form.Add("description", "invoice")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue