diff options
| author | Adam Soltys <[email protected]> | 2023-12-29 23:13:17 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-12-29 23:13:17 -0800 |
| commit | 9a7cbaf3822d0f3087bca4d1868fe918bc6ad261 (patch) | |
| tree | 42d4ba7022324870eb468ccd7484eff26c3428b8 /lib/payments.js | |
| parent | 95b52cd08f4e69bd71d71d75d6826626587577be (diff) | |
| download | coinos-server-9a7cbaf3822d0f3087bca4d1868fe918bc6ad261.tar.gz coinos-server-9a7cbaf3822d0f3087bca4d1868fe918bc6ad261.zip | |
refactor send endpoint
Diffstat (limited to 'lib/payments.js')
| -rw-r--r-- | lib/payments.js | 2 |
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, |
