diff options
| author | Adam Soltys <[email protected]> | 2024-02-23 12:19:36 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-02-23 12:19:36 -0800 |
| commit | 63aac564602bb65065fee5fdb8f29abdacd388d4 (patch) | |
| tree | b561b8c54e9fd3bca06a8f57e0e017dda5d7afe1 /routes/payments.js | |
| parent | af0a5642af202441dcc8aa49a0876941fa5a5f19 (diff) | |
| download | coinos-server-63aac564602bb65065fee5fdb8f29abdacd388d4.tar.gz coinos-server-63aac564602bb65065fee5fdb8f29abdacd388d4.zip | |
payment memos
Diffstat (limited to 'routes/payments.js')
| -rw-r--r-- | routes/payments.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/routes/payments.js b/routes/payments.js index 9891c661..cc2576c7 100644 --- a/routes/payments.js +++ b/routes/payments.js @@ -32,6 +32,7 @@ export default { async create({ body, user }, res) { let { amount, hash, maxfee, fund, memo, payreq, rate, username } = body; + memo ||= user.username; let balance = await g(`balance:${user.id}`); try { |
