update: webhooks
This commit is contained in:
@@ -29,11 +29,7 @@ import {
|
||||
WebhookInputHeaderFields,
|
||||
UpdateWebhookModalViews,
|
||||
} from '../constants';
|
||||
import {
|
||||
capitalizeFirstLetter,
|
||||
validateEventName,
|
||||
validateURI,
|
||||
} from '../utils';
|
||||
import { capitalizeFirstLetter, validateURI } from '../utils';
|
||||
import { AddWebhook, EditWebhook } from '../graphql/mutation';
|
||||
import { rest } from 'lodash';
|
||||
|
||||
|
@@ -86,8 +86,3 @@ export const validateURI = (uri: string) => {
|
||||
? true
|
||||
: false;
|
||||
};
|
||||
|
||||
export const validateEventName = (name: string) => {
|
||||
if (!name || name === '') return true;
|
||||
return name.toLowerCase().match(/^.{4,}[.].{5,}$/) ? true : false;
|
||||
};
|
||||
|
Reference in New Issue
Block a user