From 4e58ebca11ca68bfe08e3187e6cf13c01982bd4f Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 1 Oct 2022 16:40:24 -0700 Subject: increment invoice received --- routes/liquid/receive.js | 1 + 1 file changed, 1 insertion(+) (limited to 'routes/liquid') 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) }, -- cgit v1.2.3