diff options
Diffstat (limited to 'routes/lightning')
| -rw-r--r-- | routes/lightning/receive.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routes/lightning/receive.js b/routes/lightning/receive.js index 5b0d1d77..0c8d6557 100644 --- a/routes/lightning/receive.js +++ b/routes/lightning/receive.js @@ -55,9 +55,9 @@ const handlePayment = async (msg) => { let total = amount + tip; invoice.received += total; - account.balance += total; - await account.save({ transaction }); + await account.increment({ balance: total }, { transaction }); + await account.reload({ transaction }); await invoice.save({ transaction }); await payment.save({ transaction }); payments.push(msg.payment_request); |
