feat(extensions): add extension loader infrastructure #3
1 changed files with 2 additions and 0 deletions
|
|
@ -241,6 +241,8 @@ export default class {
|
||||||
const paid = await this.paymentManager.PayInvoice(appUser.user.user_id, req, app, {
|
const paid = await this.paymentManager.PayInvoice(appUser.user.user_id, req, app, {
|
||||||
ack: pendingOp => { this.notifyAppUserPayment(appUser, pendingOp) }
|
ack: pendingOp => { this.notifyAppUserPayment(appUser, pendingOp) }
|
||||||
})
|
})
|
||||||
|
// Refresh appUser balance from DB so notification has accurate latest_balance
|
||||||
|
appUser.user.balance_sats = paid.latest_balance
|
||||||
this.notifyAppUserPayment(appUser, paid.operation)
|
this.notifyAppUserPayment(appUser, paid.operation)
|
||||||
getLogger({ appName: app.name })(appUser.identifier, "invoice paid", paid.amount_paid, "sats")
|
getLogger({ appName: app.name })(appUser.identifier, "invoice paid", paid.amount_paid, "sats")
|
||||||
return paid
|
return paid
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue