Skip to content

Commit

Permalink
refactor invoice-service.ts to start payment notifier
Browse files Browse the repository at this point in the history
  • Loading branch information
anarkrypto committed Oct 7, 2024
1 parent 4cdceab commit fd3ec04
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/invoice/invoice-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ export class InvoiceService {
webhooks: service.webhooks || [],
});

const notifierId = this.env.PAYMENT_NOTIFIER.idFromName(invoice.id);
const paymentNotifier = this.env.PAYMENT_NOTIFIER.get(notifierId);
await paymentNotifier.start();

return SuccessResponse({
id: invoice.id,
pay_address,
Expand Down

0 comments on commit fd3ec04

Please sign in to comment.