diff options
| author | Adam Soltys <[email protected]> | 2022-10-26 00:07:08 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-10-26 00:07:40 -0700 |
| commit | 6c597132a7424317d2db33a11b6cff86c24875b1 (patch) | |
| tree | db5caeb70624f09c79450561426ae833f6e22386 /lib | |
| parent | 75acb68fc7dddc4ce1547786908b8df168ec7fdf (diff) | |
| download | coinos-server-6c597132a7424317d2db33a11b6cff86c24875b1.tar.gz coinos-server-6c597132a7424317d2db33a11b6cff86c24875b1.zip | |
install deps in dev mode
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 }); |
