Browse Source

2

feature/dockerfile-arm
Evan Feenstra 5 years ago
parent
commit
bc6588c3e3
  1. 2
      api/hub.ts
  2. 2
      package.json

2
api/hub.ts

@ -41,6 +41,8 @@ const checkInviteHub = async (params = {}) => {
if (dbInvite.status != invite.invite_status) { if (dbInvite.status != invite.invite_status) {
const updateObj:{[k:string]:any} = { status: invite.invite_status, price: price } const updateObj:{[k:string]:any} = { status: invite.invite_status, price: price }
if(invoice) updateObj.invoice = invoice if(invoice) updateObj.invoice = invoice
console.log('update invite!', updateObj)
dbInvite.update(updateObj) dbInvite.update(updateObj)
socket.sendJson({ socket.sendJson({

2
package.json

@ -8,7 +8,7 @@
"build": "webpack --config webpack.config.js", "build": "webpack --config webpack.config.js",
"frontend": "webpack-dev-server --entry ./frontend.jsx", "frontend": "webpack-dev-server --entry ./frontend.jsx",
"start-ts": "ts-node ./app.ts", "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", "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", "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", "tsc": "rm -rf dist/ && tsc && cp -r public dist/public",

Loading…
Cancel
Save