aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-12-29 23:13:17 -0800
committerAdam Soltys <[email protected]>2023-12-29 23:13:17 -0800
commit9a7cbaf3822d0f3087bca4d1868fe918bc6ad261 (patch)
tree42d4ba7022324870eb468ccd7484eff26c3428b8 /lib
parent95b52cd08f4e69bd71d71d75d6826626587577be (diff)
downloadcoinos-server-9a7cbaf3822d0f3087bca4d1868fe918bc6ad261.tar.gz
coinos-server-9a7cbaf3822d0f3087bca4d1868fe918bc6ad261.zip
refactor send endpoint
Diffstat (limited to 'lib')
-rw-r--r--lib/payments.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/payments.js b/lib/payments.js
index 03daf93e..88cf6845 100644
--- a/lib/payments.js
+++ b/lib/payments.js
@@ -33,7 +33,6 @@ export let debit = async ({
memo,
user,
type = types.internal,
- id = v4(),
rate,
}) => {
let ref;
@@ -76,6 +75,7 @@ export let debit = async ({
if (r !== "ok") fail("Problem debiting account");
+ let id = v4();
let p = {
id,
amount: -amount,