diff options
| -rw-r--r-- | Dockerfile | 2 | ||||
| -rw-r--r-- | lib/sendInternal.js | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -9,6 +9,6 @@ RUN npm i -g pnpm COPY . /app WORKDIR /app -RUN NODE_OPTIONS="" pnpm i +RUN NODE_ENV=development NODE_OPTIONS="" pnpm i CMD ["pnpm", "start"] 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 }); |
