fix methos check

This commit is contained in:
boufni95 2023-09-21 14:39:09 +02:00
parent 9034a62fe7
commit af23578d08

View file

@ -49,7 +49,7 @@ export default (mainHandler: Main): Types.ServerMethods => {
const err = Types.PayAddressRequestValidate(req, {
address_CustomCheck: addr => addr !== '',
amoutSats_CustomCheck: amt => amt > 0,
targetConf_CustomCheck: target => target > 0
satsPerVByte_CustomCheck: spb => spb > 0
})
if (err != null) throw new Error(err.message)
return mainHandler.paymentManager.PayAddress(ctx.user_id, req)