File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/api/integrations/event/webhook Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { WAMonitoringService } from '@api/services/monitor.service';
44import { wa } from '@api/types/wa.types' ;
55import { configService , Log , Webhook } from '@config/env.config' ;
66import { Logger } from '@config/logger.config' ;
7- import { BadRequestException } from '@exceptions' ;
7+ // import { BadRequestException } from '@exceptions';
88import axios , { AxiosInstance } from 'axios' ;
99import * 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 ( ! / ^ ( h t t p s ? : \/ \/ ) / . 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 = [ ] ;
You can’t perform that action at this time.
0 commit comments