diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/sendInternal.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sendInternal.js b/lib/sendInternal.js index 625fd42f..3090e94a 100644 --- a/lib/sendInternal.js +++ b/lib/sendInternal.js @@ -56,7 +56,7 @@ export default async ( await account.decrement({ balance: amount }, { transaction }); await account.reload({ transaction }); - let params, recipient; + let params, recipient, payment; if (username) { recipient = await db.User.findOne( @@ -203,7 +203,7 @@ export default async ( params.hash = `${hostname}/redeem/${params.redeemcode}`; } - let payment = await db.Payment.create(params, { transaction }); + payment = await db.Payment.create(params, { transaction }); payment = payment.get({ plain: true }); payment.account = account.get({ plain: true }); |
