Skip to content

Commit

Permalink
401 status if node not foudn
Browse files Browse the repository at this point in the history
  • Loading branch information
hubsmoke committed Feb 15, 2024
1 parent 7d3aeca commit a5cc386
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions desci-server/src/controllers/nodes/show.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,6 @@ export const show = async (req: RequestWithNode, res: Response, next: NextFuncti
logger.error({ error: e }, 'error');
// res.status(404).send();
// example
const discovery = await prisma.node.findFirst();
discovery.manifestUrl = `${process.env.SERVER_URL}/v1/ipfs/read/test`;
res.send(discovery);
res.status(401).send();
}
};

0 comments on commit a5cc386

Please sign in to comment.