Fix TypeError if autowithdrawal creation failed (#1072)
This commit is contained in:
parent
448f028ec1
commit
1faf309c00
|
@ -87,7 +87,7 @@ export async function autoWithdraw ({ data: { id }, models, lnd }) {
|
||||||
: wallet.type === 'CLN' ? 'walletCLN' : 'walletLightningAddress',
|
: wallet.type === 'CLN' ? 'walletCLN' : 'walletLightningAddress',
|
||||||
level: 'ERROR',
|
level: 'ERROR',
|
||||||
message: 'autowithdrawal failed: ' + details
|
message: 'autowithdrawal failed: ' + details
|
||||||
})
|
}, { me: user, models })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue