Skip to content

Commit 5f0862a

Browse files
committed
test: disable webhook https test
1 parent a1fae85 commit 5f0862a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/api/integrations/event/webhook/webhook.controller.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { WAMonitoringService } from '@api/services/monitor.service';
44
import { wa } from '@api/types/wa.types';
55
import { configService, Log, Webhook } from '@config/env.config';
66
import { Logger } from '@config/logger.config';
7-
import { BadRequestException } from '@exceptions';
7+
// import { BadRequestException } from '@exceptions';
88
import axios, { AxiosInstance } from 'axios';
99
import * as jwt from 'jsonwebtoken';
1010

@@ -18,9 +18,9 @@ export class WebhookController extends EventController implements EventControlle
1818
}
1919

2020
override async set(instanceName: string, data: EventDto): Promise<wa.LocalWebHook> {
21-
if (!/^(https?:\/\/)/.test(data.webhook.url)) {
22-
throw new BadRequestException('Invalid "url" property');
23-
}
21+
// if (!/^(https?:\/\/)/.test(data.webhook.url)) {
22+
// throw new BadRequestException('Invalid "url" property');
23+
// }
2424

2525
if (!data.webhook?.enabled) {
2626
data.webhook.events = [];

0 commit comments

Comments
 (0)