aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-10-20 18:40:39 +0000
committerAdam Soltys <[email protected]>2024-10-20 18:40:39 +0000
commit5aec744dc98bb73e3d2cf8a2d9d4862269efc195 (patch)
tree53a24a453e6cf72d7e97a41e2592a3a7e4738f26 /lib
parentf2c161ba8cdbb7b48398a875e51833f43548dc1b (diff)
downloadcoinos-server-5aec744dc98bb73e3d2cf8a2d9d4862269efc195.tar.gz
coinos-server-5aec744dc98bb73e3d2cf8a2d9d4862269efc195.zip
move variable declaration
Diffstat (limited to 'lib')
-rw-r--r--lib/payments.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/payments.ts b/lib/payments.ts
index b01c926c..cb66bd48 100644
--- a/lib/payments.ts
+++ b/lib/payments.ts
@@ -235,8 +235,8 @@ export let credit = async ({
export let completePayment = async (inv, p, user) => {
let { id, autowithdraw, threshold, reserve, destination, username } = user;
+ let withdrawal;
if (p.confirmed) {
- let withdrawal;
if (autowithdraw) {
try {
let to = destination.trim();