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

Tackle-644: Fixed returned created TagType. #109

Merged
merged 1 commit into from Jun 2, 2022

Conversation

jortel
Copy link
Contributor

@jortel jortel commented Jun 2, 2022

@jortel jortel marked this pull request as ready for review June 2, 2022 20:11
@@ -107,7 +107,7 @@ func (h TagTypeHandler) Create(ctx *gin.Context) {
}
r.With(m)

ctx.JSON(http.StatusCreated, m)
ctx.JSON(http.StatusCreated, r)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just need to return the REST resource instead of the DB model.

@jortel jortel merged commit d8ef921 into konveyor:main Jun 2, 2022
aufi pushed a commit to aufi/tackle2-hub that referenced this pull request Jul 20, 2022
aufi pushed a commit to aufi/tackle2-hub that referenced this pull request Jan 31, 2023
Signed-off-by: Marek Aufart <maufart@redhat.com>
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