Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcos20 committed Feb 27, 2025
1 parent 6bb1851 commit 8a88f16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/httpRoutes/getOceanPeers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ getOceanPeersRoute.get(
.getP2PNode()
.findPeerInDht(String(req.query.peerId), parseInt(String(req.query.timeout)))
if (peers) res.json(peers)
else res.sendStatus(404).send('Cannot find peer')
else res.status(404).send('Cannot find peer')
} else {
sendMissingP2PResponse(res)
}
Expand Down

0 comments on commit 8a88f16

Please sign in to comment.