From 07551bb69332c0511d1047aeff4f84bc9047174f Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Sat, 26 Mar 2022 13:32:52 -0700 Subject: [PATCH] fix(production): Minor fixes --- config/env/common.js | 2 +- production/docker/bch-dex/start-production.sh | 2 +- production/docker/docker-compose.yml | 2 +- production/rpi-docker/bch-dex/start-production.sh | 2 +- src/use-cases/order.js | 1 + 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/config/env/common.js b/config/env/common.js index 7e51ebd..5b5cc28 100644 --- a/config/env/common.js +++ b/config/env/common.js @@ -88,7 +88,7 @@ module.exports = { p2wdbAppId: process.env.APP_ID ? process.env.APP_ID : 'bch-dex-test557', webhookTarget: process.env.WEBHOOKTARGET ? process.env.WEBHOOKTARGET - : 'http://localhost:5700/order', + : 'http://localhost:5700/offer', // IPFS Ports ipfsTcpPort: process.env.IPFS_TCP_PORT ? process.env.IPFS_TCP_PORT : 4001, diff --git a/production/docker/bch-dex/start-production.sh b/production/docker/bch-dex/start-production.sh index 833e7ad..34728d1 100755 --- a/production/docker/bch-dex/start-production.sh +++ b/production/docker/bch-dex/start-production.sh @@ -26,7 +26,7 @@ export PORT=5700 # bch-dex specific env vars export BCH_ENV=production export WEBHOOKSERVICE=http://172.17.0.1:5667/webhook -export WEBHOOKTARGET=http://172.17.0.1:5700/order +export WEBHOOKTARGET=http://172.17.0.1:5700/offer export APP_ID=bch-dex-test557 npm start diff --git a/production/docker/docker-compose.yml b/production/docker/docker-compose.yml index 6e9a418..8e67ea1 100644 --- a/production/docker/docker-compose.yml +++ b/production/docker/docker-compose.yml @@ -4,7 +4,7 @@ version: '3.9' services: mongo-p2wdb-service: - image: mongo + image: mongo:4.4 container_name: mongo-p2wdb-service ports: - '5666:27017' # : diff --git a/production/rpi-docker/bch-dex/start-production.sh b/production/rpi-docker/bch-dex/start-production.sh index 833e7ad..34728d1 100755 --- a/production/rpi-docker/bch-dex/start-production.sh +++ b/production/rpi-docker/bch-dex/start-production.sh @@ -26,7 +26,7 @@ export PORT=5700 # bch-dex specific env vars export BCH_ENV=production export WEBHOOKSERVICE=http://172.17.0.1:5667/webhook -export WEBHOOKTARGET=http://172.17.0.1:5700/order +export WEBHOOKTARGET=http://172.17.0.1:5700/offer export APP_ID=bch-dex-test557 npm start diff --git a/src/use-cases/order.js b/src/use-cases/order.js index 29eef8e..538ff3e 100644 --- a/src/use-cases/order.js +++ b/src/use-cases/order.js @@ -28,6 +28,7 @@ class OrderLib { async createOrder (entryObj) { try { console.log('createOrder(entryObj): ', entryObj) + // if (!entryObj) return // Specify the address to send payment. entryObj.makerAddr = this.adapters.wallet.bchWallet.walletInfo.cashAddress