feat: no throw

This commit is contained in:
Nevo David 2025-10-16 22:29:43 +07:00
parent 4bfeb01c5f
commit 2ab560e5fa
1 changed files with 2 additions and 1 deletions

View File

@ -38,7 +38,8 @@ export const startMcp = async (app: INestApplication) => {
req.auth = await organizationService.getOrgByApiKey(req.params.id);
// @ts-ignore
if (!req.auth) {
throw new HttpException('Invalid API Key', 400);
res.status(400).send('Invalid API Key');
return ;
}
const url = new URL(