From 94660f32f8883747ff295e16dbff576fd59684d3 Mon Sep 17 00:00:00 2001 From: Junseo Park Date: Sat, 27 Feb 2021 15:47:29 +0900 Subject: [PATCH] feat: added developerBotSchema --- utils/Yup.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/utils/Yup.ts b/utils/Yup.ts index 9383191..42f3c73 100644 --- a/utils/Yup.ts +++ b/utils/Yup.ts @@ -134,11 +134,13 @@ export const ManageBotSchema = Yup.object({ }) export const DeveloperBotSchema: Yup.SchemaOf = Yup.object({ - webhook: Yup.string().matches(HTTPProtocol, 'http:// 또는 https:// 로 시작해야합니다.').matches(Url, '올바른 웹훅 URL을 입력해주세요.').max(64, 'URL은 최대 64자까지만 가능합니다.') + webhook: Yup.string().matches(HTTPProtocol, 'http:// 또는 https:// 로 시작해야합니다.').matches(Url, '올바른 웹훅 URL을 입력해주세요.').max(64, 'URL은 최대 64자까지만 가능합니다.'), + _csrf: Yup.string().required() }) export interface DeveloperBot { webhook: string | null + _csrf: string } export default Yup