Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/rest/platformroutes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ export async function platformroutes(
* }
* ]
*/
router.get('/peersStatus/:channel', (req, res) => {
const channelName = req.params.channel;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you verify the client-side if parameter name is channel or channel_genesis_hash

router.get('/peersStatus/:channel_genesis_hash', (req, res) => {
const channel_genesis_hash = req.params.channel_genesis_hash;
if (channelName) {
proxy.getPeersStatus(req.network, channelName).then((data: any) => {
proxy.getPeersStatus(req.network, channel_genesis_hash).then((data: any) => {
res.send({ status: 200, peers: data });
});
} else {
Expand Down