Skip to content

Commit

Permalink
Remove obsolete comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ekzyis committed Jan 6, 2024
1 parent 4852fba commit e8427dc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions worker/wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,6 @@ async function checkInvoice ({ data: { hash }, boss, models, lnd }) {
models.$executeRaw`SELECT confirm_invoice(${inv.id}, ${Number(inv.received_mtokens)})`,
models.invoice.update({ where: { hash }, data: { confirmedIndex: inv.confirmed_index } })
)
// only send push notifications in the context of a LND subscription.
// else, when this code is run from polling context, we would send another push notification.
sendUserNotification(dbInv.userId, {
title: `${numWithUnits(msatsToSats(inv.received_mtokens), { abbreviate: false })} were deposited in your account`,
body: dbInv.comment || undefined,
Expand Down

0 comments on commit e8427dc

Please sign in to comment.