From ffbd27b2e9ddcb52a37febc0855e16b4fe09dbdc Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 14 Jun 2022 12:15:58 -0700 Subject: add multiple credits columns --- routes/liquid/receive.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routes/liquid') diff --git a/routes/liquid/receive.js b/routes/liquid/receive.js index 0eed35fd..9650e5b7 100644 --- a/routes/liquid/receive.js +++ b/routes/liquid/receive.js @@ -344,7 +344,7 @@ setInterval(async () => { { pending: Math.min(p.account.pending, total) }, { transaction } ); - await account.increment({ fee_credits: Math.floor(total * withdrawalFeeMultiplier) }, { transaction }); + await p.account.increment({ fee_credits: Math.floor(total * withdrawalFeeMultiplier) }, { transaction }); await p.account.reload({ transaction }); await p.save({ transaction }); -- cgit v1.2.3