Ajuste mensagem de email ja cadastrado

This commit is contained in:
Hugo Falcao
2022-04-18 23:02:51 -03:00
parent 273cb8b624
commit bf5620a5fc

View File

@@ -24,7 +24,7 @@ class CreateUserService {
}); });
if (checkUserEmailExists) { if (checkUserEmailExists) {
throw new AppError('Email address is already used.', 200); throw new AppError('Email já cadastrado!', 200);
} }
const hashedPassword = await hash(password, 8); const hashedPassword = await hash(password, 8);