diff --git a/src/api/integrations/event/webhook/webhook.controller.ts b/src/api/integrations/event/webhook/webhook.controller.ts index a204f8f7..bd4e5fe0 100644 --- a/src/api/integrations/event/webhook/webhook.controller.ts +++ b/src/api/integrations/event/webhook/webhook.controller.ts @@ -4,7 +4,7 @@ import { WAMonitoringService } from '@api/services/monitor.service'; import { wa } from '@api/types/wa.types'; import { configService, Log, Webhook } from '@config/env.config'; import { Logger } from '@config/logger.config'; -import { BadRequestException } from '@exceptions'; +// import { BadRequestException } from '@exceptions'; import axios, { AxiosInstance } from 'axios'; import * as jwt from 'jsonwebtoken'; @@ -18,9 +18,9 @@ export class WebhookController extends EventController implements EventControlle } override async set(instanceName: string, data: EventDto): Promise { - if (!/^(https?:\/\/)/.test(data.webhook.url)) { - throw new BadRequestException('Invalid "url" property'); - } + // if (!/^(https?:\/\/)/.test(data.webhook.url)) { + // throw new BadRequestException('Invalid "url" property'); + // } if (!data.webhook?.enabled) { data.webhook.events = [];