mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-13 07:04:50 -06:00
test: disable webhook https test
This commit is contained in:
parent
a1fae85531
commit
5f0862a759
@ -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 = [];
|
||||
|
Loading…
Reference in New Issue
Block a user