ts fix
This commit is contained in:
parent
d5c1a3478e
commit
338414e3d3
1 changed files with 2 additions and 2 deletions
|
|
@ -246,8 +246,8 @@ export default class {
|
|||
async PayAppUserInvoice(appId: string, req: Types.PayAppUserInvoiceRequest): Promise<Types.PayInvoiceResponse> {
|
||||
const app = await this.storage.applicationStorage.GetApplication(appId)
|
||||
const appUser = await this.storage.applicationStorage.GetApplicationUser(app, req.user_identifier)
|
||||
const paid = await this.paymentManager.PayInvoice(appUser.user.user_id, req, app, pendingOp => {
|
||||
this.notifyAppUserPayment(appUser, pendingOp)
|
||||
const paid = await this.paymentManager.PayInvoice(appUser.user.user_id, req, app, {
|
||||
ack: pendingOp => { this.notifyAppUserPayment(appUser, pendingOp) }
|
||||
})
|
||||
this.notifyAppUserPayment(appUser, paid.operation)
|
||||
getLogger({ appName: app.name })(appUser.identifier, "invoice paid", paid.amount_paid, "sats")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue