fix transfer

This commit is contained in:
Expand-sys 2021-06-16 06:38:44 +10:00
parent 4ab1e823b7
commit 8b7f125646

View file

@ -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);
}