aboutsummaryrefslogtreecommitdiffstats
path: root/routes/liquid
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-10-01 16:40:38 -0700
committerAdam Soltys <[email protected]>2022-10-01 16:40:38 -0700
commitb5e85cde1015c2ffd5b25dec8f281089ff12b8d8 (patch)
tree9552d1f7d00f2056a34c2647719ec2c4091163e9 /routes/liquid
parent5d51b1aded7ee2214c2c49e67f78ca6cef678f78 (diff)
parent4e58ebca11ca68bfe08e3187e6cf13c01982bd4f (diff)
downloadcoinos-server-b5e85cde1015c2ffd5b25dec8f281089ff12b8d8.tar.gz
coinos-server-b5e85cde1015c2ffd5b25dec8f281089ff12b8d8.zip
Merge branch 'master' into prod
Diffstat (limited to 'routes/liquid')
-rw-r--r--routes/liquid/receive.js1
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) },