From 8b7f1256469849ede291ab654deeacd1daae6098 Mon Sep 17 00:00:00 2001 From: Expand-sys Date: Wed, 16 Jun 2021 06:38:44 +1000 Subject: [PATCH] fix transfer --- index.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/index.js b/index.js index 217af53..80b5109 100644 --- a/index.js +++ b/index.js @@ -212,15 +212,7 @@ app.post("/sendfunds", async function (req, res) { let a_name = req.session.user; let result; try { - result = await got.post( - `${process.env.BANKAPIURL}/${a_name}/send/${name}?amount=${amount}`, - { - headers: { - Password: senderpass, - }, - } - ); - //client.sendFunds(a_name, senderpass, name, amount); + result = await client.sendFunds(a_name, senderpass, name, amount); } catch (e) { console.log(e); }