aboutsummaryrefslogtreecommitdiffstats
path: root/lib/db.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-01-29 21:09:21 -0800
committerAdam Soltys <[email protected]>2024-01-29 21:09:21 -0800
commit0c223a4835711a287f17835af959b47f72ea68c9 (patch)
tree1b5d58d0e57ad9b4b9597c249a3b4373f9963188 /lib/db.js
parentda2ac3f9ba4e5e756088b7b9d79f1ac8c88aef4e (diff)
downloadcoinos-server-0c223a4835711a287f17835af959b47f72ea68c9.tar.gz
coinos-server-0c223a4835711a287f17835af959b47f72ea68c9.zip
calculate platform fee properly
Diffstat (limited to 'lib/db.js')
-rw-r--r--lib/db.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/db.js b/lib/db.js
index 6a84a7a2..58472269 100644
--- a/lib/db.js
+++ b/lib/db.js
@@ -24,7 +24,7 @@ end
redis.call('decrby', creditKey, tostring(math.floor(covered)))
redis.call('decrby', balanceKey, tostring(math.floor(amount + tip + fee + ourfee)))
-return {ok = ourfee}
+return ourfee
`;
let debit = defineScript({