aboutsummaryrefslogtreecommitdiffstats
path: root/routes
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-06-14 12:15:58 -0700
committerAdam Soltys <[email protected]>2022-06-14 12:15:58 -0700
commitffbd27b2e9ddcb52a37febc0855e16b4fe09dbdc (patch)
treeffb85f6472fc52e253f9c88ae87b23bdf7f78218 /routes
parentf37c8ba68418a2a325f45a7a36c139cb5bc696aa (diff)
downloadcoinos-server-ffbd27b2e9ddcb52a37febc0855e16b4fe09dbdc.tar.gz
coinos-server-ffbd27b2e9ddcb52a37febc0855e16b4fe09dbdc.zip
add multiple credits columns
Diffstat (limited to 'routes')
-rw-r--r--routes/liquid/receive.js2
1 files changed, 1 insertions, 1 deletions
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 });