From 5673708f76a9a7cdc6afa88499c4cba475ff2225 Mon Sep 17 00:00:00 2001 From: Expand-sys Date: Sun, 9 May 2021 10:19:26 +1000 Subject: [PATCH] fixed registration - wasnt using process.env.BANKAPIURL for the postuser function --- helpers/functions.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/helpers/functions.js b/helpers/functions.js index 6fe4000..479be83 100644 --- a/helpers/functions.js +++ b/helpers/functions.js @@ -3,8 +3,9 @@ const got = require('got'); async function postUser(name, password){ + console.log(process.env.BANKAPIURL) try{ - const {body} = await got.post('https://ccash.ryzerth.com/BankF/user',{ + const {body} = await got.post(process.env.BANKAPIURL+'BankF/user',{ json:{ name: name, init_pass: password @@ -16,9 +17,6 @@ async function postUser(name, password){ } catch(err){ console.log(err) } - - console.log(body) - return body.value }