remoção da obrigatoriedade do 55 no inimcio do numero de telefone

pull/20/head
adriano 2023-10-03 10:37:10 -03:00
parent 8b089c0fb0
commit f0e607c475
1 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ export const store = async (req: Request, res: Response): Promise<Response> => {
number: Yup.string()
.required()
.matches(/^\d+$/, "Invalid number format. Only numbers is allowed.")
.matches(/^55\d+$/, "The number must start with 55.")
// .matches(/^55\d+$/, "The number must start with 55.")
});
try {
@ -176,7 +176,7 @@ export const update = async (
name: Yup.string(),
number: Yup.string()
.matches(/^\d+$/,"Invalid number format. Only numbers is allowed.")
.matches(/^55\d+$/, "The number must start with 55.")
// .matches(/^55\d+$/, "The number must start with 55.")
});
try {