fix: retain visibility when editing (#83)

* fix: retain visibility when editing

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* review(thomiceli): remove private conversion in dto

Signed-off-by: jolheiser <john.olheiser@gmail.com>

---------

Signed-off-by: jolheiser <john.olheiser@gmail.com>
This commit is contained in:
John Olheiser
2023-07-19 10:28:42 -05:00
committed by GitHub
parent 24fc6dd8e4
commit 319a89387a
2 changed files with 2 additions and 3 deletions

View File

@ -399,6 +399,5 @@ func (dto *GistDTO) ToGist() *Gist {
func (dto *GistDTO) ToExistingGist(gist *Gist) *Gist {
gist.Title = dto.Title
gist.Description = dto.Description
gist.Private = dto.Private
return gist
}