update: webhooks
This commit is contained in:
parent
94066d4408
commit
df17ea8f40
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user