fix typo
This commit is contained in:
parent
393ecad4f8
commit
57d52ce6f9
1 changed files with 1 additions and 1 deletions
|
|
@ -174,7 +174,7 @@ export default class {
|
||||||
async HandleLnurlWithdraw(k1: string, invoice: string): Promise<void> {
|
async HandleLnurlWithdraw(k1: string, invoice: string): Promise<void> {
|
||||||
const key = await this.storage.paymentStorage.UseUserEphemeralKey(k1, 'withdraw')
|
const key = await this.storage.paymentStorage.UseUserEphemeralKey(k1, 'withdraw')
|
||||||
try {
|
try {
|
||||||
await this.PayInvoice(key.user.user_id, { invoice: invoice, amount: 0s })
|
await this.PayInvoice(key.user.user_id, { invoice: invoice, amount: 0 })
|
||||||
} catch (err: any) {
|
} catch (err: any) {
|
||||||
console.error("error sending payment for lnurl withdraw to ", key.user.user_id, err)
|
console.error("error sending payment for lnurl withdraw to ", key.user.user_id, err)
|
||||||
throw new Error("failed to pay invoice")
|
throw new Error("failed to pay invoice")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue