1
0

Fix resetting list, label & namespace colors

This commit is contained in:
kolaente
2020-06-15 11:32:07 +02:00
parent 47d7e713af
commit 24c1098736
3 changed files with 10 additions and 7 deletions

View File

@ -92,7 +92,14 @@ func (l *Label) Create(a web.Auth) (err error) {
// @Failure 500 {object} models.Message "Internal error"
// @Router /labels/{id} [put]
func (l *Label) Update() (err error) {
_, err = x.ID(l.ID).Update(l)
_, err = x.
ID(l.ID).
Cols(
"title",
"description",
"hex_color",
).
Update(l)
if err != nil {
return
}