fix methos check
This commit is contained in:
parent
9034a62fe7
commit
af23578d08
1 changed files with 1 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ export default (mainHandler: Main): Types.ServerMethods => {
|
||||||
const err = Types.PayAddressRequestValidate(req, {
|
const err = Types.PayAddressRequestValidate(req, {
|
||||||
address_CustomCheck: addr => addr !== '',
|
address_CustomCheck: addr => addr !== '',
|
||||||
amoutSats_CustomCheck: amt => amt > 0,
|
amoutSats_CustomCheck: amt => amt > 0,
|
||||||
targetConf_CustomCheck: target => target > 0
|
satsPerVByte_CustomCheck: spb => spb > 0
|
||||||
})
|
})
|
||||||
if (err != null) throw new Error(err.message)
|
if (err != null) throw new Error(err.message)
|
||||||
return mainHandler.paymentManager.PayAddress(ctx.user_id, req)
|
return mainHandler.paymentManager.PayAddress(ctx.user_id, req)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue