From 42b0a9243389bb86db6d9d276b3d60b769aa725a Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 25 Oct 2022 15:46:13 -0700 Subject: pin to node 18 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index f29b9a18..80f6851c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:alpine +FROM node:18-alpine ARG NODE_ENV=production ENV NODE_ENV $NODE_ENV -- cgit v1.2.3 From 6c597132a7424317d2db33a11b6cff86c24875b1 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 26 Oct 2022 00:07:08 -0700 Subject: install deps in dev mode --- Dockerfile | 2 +- lib/sendInternal.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 80f6851c..a8a125ef 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 }); -- cgit v1.2.3