From 8b1a28132f66b940fc48edb22bc961ef3610985a Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 16 Mar 2021 23:24:43 -0400 Subject: display username in internal transfer payment hash --- routes/send.js | 4 ++-- 1 file 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 -- cgit v1.2.3