From bc6588c3e359501a2352ccbdc11c870e28f4c22e Mon Sep 17 00:00:00 2001 From: Evan Feenstra Date: Thu, 2 Apr 2020 11:05:57 -0700 Subject: [PATCH] 2 --- api/hub.ts | 2 ++ package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/api/hub.ts b/api/hub.ts index 9f324a1..3e4c1a2 100644 --- a/api/hub.ts +++ b/api/hub.ts @@ -41,6 +41,8 @@ const checkInviteHub = async (params = {}) => { if (dbInvite.status != invite.invite_status) { const updateObj:{[k:string]:any} = { status: invite.invite_status, price: price } if(invoice) updateObj.invoice = invoice + console.log('update invite!', updateObj) + dbInvite.update(updateObj) socket.sendJson({ diff --git a/package.json b/package.json index 8b3bdb0..69b3989 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "build": "webpack --config webpack.config.js", "frontend": "webpack-dev-server --entry ./frontend.jsx", "start-ts": "ts-node ./app.ts", - "start": "HOSTING_PROVIDER=true INVITE_SERVER=hub.sphinx.chat ts-node ./app.ts", + "start": "ts-node ./app.ts", "start-hosting": "HOSTING_PROVIDER=true ts-node ./app.ts", "prod": "cp config/app.json dist/config/app.json && cp config/config.json dist/config/config.json && env NODE_ENV=production node dist/app.js", "tsc": "rm -rf dist/ && tsc && cp -r public dist/public",