Closed joelbrs closed 3 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
bank-web.com.br | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jul 17, 2024 4:08pm |
bank.com.br.server | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jul 17, 2024 4:08pm |
@coderabbitai full review
[!CAUTION]
Review failed
The pull request is closed.
As alterações recentes melhoraram o processo de registro de usuários, adicionando validações para verificar se o e-mail ou o CPF/CNPJ já estão em uso. Novos casos de teste foram incorporados para garantir que erros sejam gerados corretamente quando um usuário tenta registrar um e-mail ou um CPF/CNPJ duplicados, reforçando as regras de negócios e a robustez do sistema.
Arquivo | Resumo das Alterações |
---|---|
.../user/__test__/register-user.spec.ts |
Adicionados testes para verificar se o registro falha se o e-mail ou CPF/CNPJ já existem. |
.../user/mutations/register-user.ts |
Implementada validação assíncrona para verificar a existência de e-mail e CPF/CNPJ antes do registro. |
🐰 No campo a correr, em busca de paz,
Novas regras surgem, e a vida traz,
E-mails e IDs, não se pode errar,
Com testes novos, vamos celebrar!
O registro é forte, não há como falhar,
Nosso coelho feliz, pronto para brilhar! 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
Novos Recursos
Correções de Bugs