Skip to content

Commit

Permalink
fix: invoice.verifyURL undefined from lnurl processor getInvoice (#325
Browse files Browse the repository at this point in the history
)
  • Loading branch information
flxxyz authored May 30, 2023
1 parent 88422fb commit 33c2fd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/payments-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class PaymentsService implements IPaymentsService {
public async getInvoiceFromPaymentsProcessor(invoice: Invoice | string): Promise<Partial<Invoice>> {
try {
return await this.paymentsProcessor.getInvoice(
typeof invoice === 'string' ? invoice : invoice.id
typeof invoice === 'string' || invoice?.verifyURL ? invoice : invoice.id
)
} catch (error) {
console.log('Unable to get invoice from payments processor. Reason:', error)
Expand Down

0 comments on commit 33c2fd5

Please sign in to comment.