From ae06bc991647a106465e99fb896299649d742c5b Mon Sep 17 00:00:00 2001 From: thejjw <72130076+thejjw@users.noreply.github.com> Date: Tue, 16 Jan 2024 02:11:14 +0900 Subject: [PATCH] Update platformroutes.ts Signed-off-by: thejjw <72130076+thejjw@users.noreply.github.com> --- app/rest/platformroutes.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/rest/platformroutes.ts b/app/rest/platformroutes.ts index e1857645a..924e3b2d2 100644 --- a/app/rest/platformroutes.ts +++ b/app/rest/platformroutes.ts @@ -87,10 +87,10 @@ export async function platformroutes( * } * ] */ - router.get('/peersStatus/:channel', (req, res) => { - const channelName = req.params.channel; + 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 {