test: disable webhook https test

This commit is contained in:
Davidson Gomes 2025-06-16 15:27:16 -03:00
parent a1fae85531
commit 5f0862a759

View File

@ -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<wa.LocalWebHook> {
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 = [];