Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: implement class #7

Merged
merged 10 commits into from Jun 16, 2022
Merged

fix: implement class #7

merged 10 commits into from Jun 16, 2022

Conversation

vitia-fritelle
Copy link
Collaborator

  1. Configuração do prettier está como tabWidth e não como tabSize
  2. Convetido o CustomError de OO prototípica para OO clássica
  3. Fiz uma mudança no getUserById pare pegar com LEFT JOIN. Verificar se não dará conflito no de vocês.
  4. Eu coloquei um try-catch nos middlewares para debugar, acho que eles podem ser removidos dado que temos o módulo de express-async-errors, mas é necessário realizar os testes.
  5. Fiz algumas mudanças de arquitetura porque havia algumas pastas repetidas.

@vitia-fritelle vitia-fritelle changed the title Posts user id route fix: implement class Jun 16, 2022
text: Joi.string(),
url: Joi.string().pattern(new RegExp(REG_URL)).required()
text: Joi.string(),
url: Joi.string().pattern(new RegExp(REG_URL)).required(),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Poderia utilizar o uri() do Joi ao invés da regex como alternativa

@NivaldoFarias NivaldoFarias merged commit 655f0b4 into main Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants