Update index.ts
This commit is contained in:
parent
123105e4c5
commit
910ae0cec4
1 changed files with 2 additions and 3 deletions
|
|
@ -88,8 +88,7 @@ export default (mainHandler: Main): Types.ServerMethods => {
|
||||||
},
|
},
|
||||||
CloseChannel: async ({ ctx, req }) => {
|
CloseChannel: async ({ ctx, req }) => {
|
||||||
const err = Types.CloseChannelRequestValidate(req, {
|
const err = Types.CloseChannelRequestValidate(req, {
|
||||||
funding_txid_CustomCheck: chanId => chanId !== '',
|
funding_txid_CustomCheck: chanId => chanId !== ''
|
||||||
sat_per_v_byte_CustomCheck: spv => spv > 0
|
|
||||||
})
|
})
|
||||||
if (err != null) throw new Error(err.message)
|
if (err != null) throw new Error(err.message)
|
||||||
return mainHandler.adminManager.CloseChannel(req)
|
return mainHandler.adminManager.CloseChannel(req)
|
||||||
|
|
@ -414,4 +413,4 @@ export default (mainHandler: Main): Types.ServerMethods => {
|
||||||
return mainHandler.appUserManager.GetHttpCreds(ctx)
|
return mainHandler.appUserManager.GetHttpCreds(ctx)
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue