mirror of
https://github.com/mempool/mempool.git
synced 2024-11-19 09:52:14 +01:00
Fix missing return on invalid params
This commit is contained in:
parent
af13b6c9f8
commit
20df70c449
@ -54,9 +54,11 @@ class ChannelsRoutes {
|
||||
|
||||
if (index < -1) {
|
||||
res.status(400).send('Invalid index');
|
||||
return;
|
||||
}
|
||||
if (['open', 'active', 'closed'].includes(status) === false) {
|
||||
res.status(400).send('Invalid status');
|
||||
return;
|
||||
}
|
||||
|
||||
const channels = await channelsApi.$getChannelsForNode(req.query.public_key, index, 10, status);
|
||||
|
Loading…
Reference in New Issue
Block a user