File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ async function validateNotificationsRuleChannels(channels: NotificationsChannels
127127 }
128128 }
129129
130- if ( channels . webhook ?. isEnabled ) {
130+ if ( channels . webhook ?. isEnabled && channels . webhook . endpoint ) {
131131 const webhookError = await validateWebhookEndpoint ( channels . webhook . endpoint ) ;
132132
133133 if ( webhookError !== null ) {
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ export default {
4747 { input } : ChangeUserNotificationsChannelPayload ,
4848 { user, factories } : ResolverContextWithUser
4949 ) : Promise < ChangeNotificationsResponse > {
50- if ( input . webhook ?. isEnabled ) {
50+ if ( input . webhook ?. isEnabled && input . webhook . endpoint ) {
5151 const webhookError = await validateWebhookEndpoint ( input . webhook . endpoint ) ;
5252
5353 if ( webhookError !== null ) {
You can’t perform that action at this time.
0 commit comments