This commit is contained in:
boufni95 2023-10-27 20:07:00 +02:00
parent c7303ca5dd
commit bbbb14baec

View file

@ -101,7 +101,8 @@ export default class {
identifier: u.identifier, identifier: u.identifier,
info: { info: {
userId: u.user.user_id, userId: u.user.user_id,
balance: u.user.balance_sats balance: u.user.balance_sats,
max_withdrawable: this.paymentManager.GetMaxPayableInvoice(u.user.balance_sats, true)
}, },
max_withdrawable: this.paymentManager.GetMaxPayableInvoice(u.user.balance_sats, true) max_withdrawable: this.paymentManager.GetMaxPayableInvoice(u.user.balance_sats, true)
} }
@ -134,7 +135,8 @@ export default class {
const max = this.paymentManager.GetMaxPayableInvoice(user.user.balance_sats, true) const max = this.paymentManager.GetMaxPayableInvoice(user.user.balance_sats, true)
return { return {
max_withdrawable: max, identifier: req.user_identifier, info: { max_withdrawable: max, identifier: req.user_identifier, info: {
userId: user.user.user_id, balance: user.user.balance_sats userId: user.user.user_id, balance: user.user.balance_sats,
max_withdrawable: this.paymentManager.GetMaxPayableInvoice(user.user.balance_sats, true)
} }
} }
} }