mirror of
https://github.com/thomiceli/opengist.git
synced 2025-06-20 08:48:00 +02:00
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:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user