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

CT-32/CT-144 #48

Merged
merged 11 commits into from
Jun 4, 2024
Merged

CT-32/CT-144 #48

merged 11 commits into from
Jun 4, 2024

Conversation

RafaelRtx
Copy link
Contributor

  • Adicionado patch-profile DTO para validação
  • Adicionada patch-profile interface para o método PATCH na rota profile/me
  • Adicionada funcionalidade do usuário alterar os dados de perfil name, username, email ou birthDate usando o método http PATCH na rota profile/me

Copy link
Contributor

@erickmarx erickmarx left a comment

Choose a reason for hiding this comment

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

Na função patchMe na service, não é necessario fazer a desestruturação e reestruturação do objeto validado vindo da controller, da mesma forma que é redundante validar cada valor vindo do body, sendo possivel dar essa responsabilidade ao prisma/relacional.

Se houver duvidas sobre o que foi apontado aqui, pode me chamar no discord, vai ser um prazer te ajudar a melhorar.

src/modules/profile/profile.repository.ts Outdated Show resolved Hide resolved
src/modules/profile/profile.service.ts Outdated Show resolved Hide resolved
src/modules/profile/profile.service.ts Outdated Show resolved Hide resolved
src/modules/profile/profile.service.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@erickmarx erickmarx left a comment

Choose a reason for hiding this comment

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

Está perfeito para mim, parabéns Rafa!

Copy link

sonarcloud bot commented Jun 4, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@natanaelsc natanaelsc merged commit 75f6446 into develop Jun 4, 2024
2 checks passed
@natanaelsc natanaelsc deleted the feature/patch-user-profile-data-route branch June 4, 2024 22:54
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

3 participants