From cd074a47b7ddc5b936067ff94b7c8859c6fe0e09 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Sat, 6 Jul 2024 07:16:26 +0200 Subject: [PATCH] Fix success autowithdrawal log --- worker/wallet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worker/wallet.js b/worker/wallet.js index 028c20e3..238ef9e4 100644 --- a/worker/wallet.js +++ b/worker/wallet.js @@ -253,7 +253,7 @@ async function checkWithdrawal ({ data: { hash }, boss, models, lnd }) { if (dbWdrwl.wallet) { // this was an autowithdrawal const message = `autowithdrawal of ${numWithUnits(msatsToSats(paid), { abbreviate: false })} with ${numWithUnits(msatsToSats(fee), { abbreviate: false })} as fee` - await addWalletLog({ wallet: dbWdrwl.wallet.type, level: 'SUCCESS', message }, { models, me: { id: dbWdrwl.userId } }) + await addWalletLog({ wallet: dbWdrwl.wallet, level: 'SUCCESS', message }, { models, me: { id: dbWdrwl.userId } }) } } } else if (wdrwl?.is_failed || notFound) {