-
Notifications
You must be signed in to change notification settings - Fork 54
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
122 customize wallet #460
Conversation
@Kpoke please review |
@@ -49,6 +49,14 @@ const walletPostSchema = Joi.object({ | |||
about: Joi.string(), | |||
}); | |||
|
|||
const walletPatchSchema = Joi.object({ | |||
id: Joi.string().uuid().required(), |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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(), |
There was a problem hiding this comment.
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
🎉 This PR is included in version 1.38.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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?