mirror of
https://github.com/Expand-sys/ccashfrontend
synced 2025-12-17 07:12:12 +11:00
fix transfer
This commit is contained in:
parent
4ab1e823b7
commit
8b7f125646
1 changed files with 1 additions and 9 deletions
10
index.js
10
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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue