diff options
| author | Adam Soltys <[email protected]> | 2022-10-01 16:40:24 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-10-01 16:40:24 -0700 |
| commit | 4e58ebca11ca68bfe08e3187e6cf13c01982bd4f (patch) | |
| tree | 73509444ae0aa6b94b2119bd0df0b3f910227d8f /routes/liquid | |
| parent | 721f96b11d25eeb58342c5847b0a4bd3f5159dbb (diff) | |
| download | coinos-server-4e58ebca11ca68bfe08e3187e6cf13c01982bd4f.tar.gz coinos-server-4e58ebca11ca68bfe08e3187e6cf13c01982bd4f.zip | |
increment invoice received
Diffstat (limited to 'routes/liquid')
| -rw-r--r-- | routes/liquid/receive.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/routes/liquid/receive.js b/routes/liquid/receive.js index 480677de..4ad4c7dc 100644 --- a/routes/liquid/receive.js +++ b/routes/liquid/receive.js @@ -344,6 +344,7 @@ setInterval(async () => { p.confirmed = 1; await p.account.save({ transaction }); + await p.invoice.increment({ received: total }, { transaction }); await p.account.increment({ balance: total }, { transaction }); await p.account.decrement( { pending: Math.min(p.account.pending, total) }, |
