This commit is contained in:
boufni95 2023-10-23 19:43:33 +02:00
parent 66945d1339
commit d9cdff1509

View file

@ -191,7 +191,7 @@ export default class {
await this.Health() await this.Health()
const abortController = new AbortController() const abortController = new AbortController()
const req = PayInvoiceReq(invoice, amount, feeLimit) const req = PayInvoiceReq(invoice, amount, feeLimit)
this.log("sending payment:", req) this.log("sending payment:", JSON.stringify(req))
const stream = this.router.sendPaymentV2(req, { abort: abortController.signal }) const stream = this.router.sendPaymentV2(req, { abort: abortController.signal })
return new Promise((res, rej) => { return new Promise((res, rej) => {
stream.responses.onError(error => { stream.responses.onError(error => {