This commit is contained in:
hatim 2023-05-11 21:25:17 +02:00
parent 393ecad4f8
commit 57d52ce6f9

View file

@ -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")