aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
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,