From b3255c6f4201124b57a6de015dcd3f3b3b58febf Mon Sep 17 00:00:00 2001 From: canove Date: Thu, 14 Jan 2021 18:05:16 -0300 Subject: [PATCH] fix: error when click on "try again" on whatsapp connection --- backend/src/services/WhatsappService/UpdateWhatsAppService.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/services/WhatsappService/UpdateWhatsAppService.ts b/backend/src/services/WhatsappService/UpdateWhatsAppService.ts index 4d96889..03cc5eb 100644 --- a/backend/src/services/WhatsappService/UpdateWhatsAppService.ts +++ b/backend/src/services/WhatsappService/UpdateWhatsAppService.ts @@ -30,7 +30,8 @@ const UpdateWhatsAppService = async ({ whatsappId }: Request): Promise => { const schema = Yup.object().shape({ - name: Yup.string().min(2).required(), + name: Yup.string().min(2), + status: Yup.string(), isDefault: Yup.boolean() });