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

122 customize wallet #460

Merged
merged 6 commits into from
Apr 29, 2024
Merged

122 customize wallet #460

merged 6 commits into from
Apr 29, 2024

Conversation

OlhaD
Copy link
Contributor

@OlhaD OlhaD commented Apr 9, 2024

Description

Add an API to update wallet

Issue(s) addressed
Greenstand/treetracker-wallet-admin-client#122

What kind of change(s) does this PR introduce?

  • [x ] Enhancement
  • Bug fix
  • Refactor

@OlhaD
Copy link
Contributor Author

OlhaD commented Apr 16, 2024

@Kpoke please review

@@ -49,6 +49,14 @@ const walletPostSchema = Joi.object({
about: Joi.string(),
});

const walletPatchSchema = Joi.object({
id: Joi.string().uuid().required(),
Copy link
Collaborator

Choose a reason for hiding this comment

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

id should not be here. The id should be gotten from the url /wallet/:id

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed it. Maybe I should better take it from the request (from the token) like in walletPost? It doesn't have id in the URL and I would expect Patch request to look similar to Post

@@ -49,6 +49,14 @@ const walletPostSchema = Joi.object({
about: Joi.string(),
});

const walletPatchSchema = Joi.object({
id: Joi.string().uuid().required(),
name: Joi.string().required(),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Also, the name should not be updateable at this moment

@Kpoke Kpoke merged commit b0de895 into Greenstand:master Apr 29, 2024
1 check passed
Copy link

🎉 This PR is included in version 1.38.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants