aboutsummaryrefslogtreecommitdiffstats
path: root/routes/payments.ts
diff options
context:
space:
mode:
Diffstat (limited to 'routes/payments.ts')
-rw-r--r--routes/payments.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/routes/payments.ts b/routes/payments.ts
index 1e035b3c..9282723a 100644
--- a/routes/payments.ts
+++ b/routes/payments.ts
@@ -238,6 +238,7 @@ export default {
const {
params: { name },
} = req;
+ fail("disabled");
const balance = await g(`fund:${name}`);
res.send({
tag: "withdrawRequest",
@@ -255,6 +256,7 @@ export default {
user,
} = req;
try {
+ fail("disabled");
const { id: uid } = user;
amount = parseInt(amount);
if (amount < 0) fail("Invalid amount");
@@ -290,8 +292,7 @@ export default {
res.send({ payment });
} catch (e) {
- console.log(e);
- warn("problem withdrawing from fund", e.message);
+ warn("problem withdrawing from fund", user.username, e.message);
bail(res, e.message);
}
},