Skip to content
This repository was archived by the owner on Dec 7, 2023. It is now read-only.

Conversation

@hsiehby
Copy link
Member

@hsiehby hsiehby commented Nov 21, 2019

I added the PatchUserRegistration endpoint that allows the user to update only certain fields of their registration. This feature relies on the Patch method in mongo_database.go that I added in my previous pull request.

The toObject method in conversions.go is modified to omit fields that are not provided in raw_data, instead of filling them up with default values. This ensures that the patch method does not overwrite fields that should be omitted with default values.

Also, tests and docs are updated for this endpoint.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants