Skip to content

Commit 2ab560e

Browse files
committed
feat: no throw
1 parent 4bfeb01 commit 2ab560e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libraries/nestjs-libraries/src/chat/start.mcp.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ export const startMcp = async (app: INestApplication) => {
3838
req.auth = await organizationService.getOrgByApiKey(req.params.id);
3939
// @ts-ignore
4040
if (!req.auth) {
41-
throw new HttpException('Invalid API Key', 400);
41+
res.status(400).send('Invalid API Key');
42+
return ;
4243
}
4344

4445
const url = new URL(

0 commit comments

Comments
 (0)