mirror of
https://github.com/Expand-sys/ccashfrontend
synced 2025-12-18 15:42:14 +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 a_name = req.session.user;
|
||||||
let result;
|
let result;
|
||||||
try {
|
try {
|
||||||
result = await got.post(
|
result = await client.sendFunds(a_name, senderpass, name, amount);
|
||||||
`${process.env.BANKAPIURL}/${a_name}/send/${name}?amount=${amount}`,
|
|
||||||
{
|
|
||||||
headers: {
|
|
||||||
Password: senderpass,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
);
|
|
||||||
//client.sendFunds(a_name, senderpass, name, amount);
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue