aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2021-03-16 23:24:43 -0400
committerAdam Soltys <[email protected]>2021-03-16 23:24:43 -0400
commit8b1a28132f66b940fc48edb22bc961ef3610985a (patch)
treed12859540340116fd683ca8d22e2545ed5c9bfa2
parentd3e0bb7ef5bd1dac383e1df34a312cbc65907cda (diff)
downloadcoinos-server-8b1a28132f66b940fc48edb22bc961ef3610985a.tar.gz
coinos-server-8b1a28132f66b940fc48edb22bc961ef3610985a.zip
display username in internal transfer payment hash
-rw-r--r--routes/send.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/routes/send.js b/routes/send.js
index 8e5e527b..1d8cdc63 100644
--- a/routes/send.js
+++ b/routes/send.js
@@ -40,7 +40,7 @@ module.exports = ah(async (req, res, next) => {
rate: app.get("rates")[user.currency],
currency: user.currency,
confirmed: true,
- hash: "Internal Transfer",
+ hash: username ? `Payment to ${username}` : "Internal Transfer",
network: "COINOS"
};
@@ -134,7 +134,7 @@ module.exports = ah(async (req, res, next) => {
rate: app.get("rates")[recipient.currency],
currency: recipient.currency,
confirmed: true,
- hash: "Internal Transfer",
+ hash: "Payment from " + user.username,
memo,
network: "COINOS",
received: true