Skip to content

Commit

Permalink
[tag] support show_name for update/create (#243)
Browse files Browse the repository at this point in the history
Co-authored-by: Haihui.Wang <wanghh2000@163.com>
  • Loading branch information
SeanHH86 and wanghh2000 authored Jan 13, 2025
1 parent 594d5a6 commit b159931
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions component/tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ func (c *tagComponentImpl) CreateTag(ctx context.Context, username string, req t
Group: req.Group,
Scope: database.TagScope(req.Scope),
BuiltIn: req.BuiltIn,
ShowName: req.ShowName,
}

tag, err := c.tagStore.FindOrCreate(ctx, newTag)
Expand Down Expand Up @@ -273,6 +274,7 @@ func (c *tagComponentImpl) UpdateTag(ctx context.Context, username string, id in
Group: req.Group,
Scope: database.TagScope(req.Scope),
BuiltIn: req.BuiltIn,
ShowName: req.ShowName,
}
newTag, err := c.tagStore.UpdateTagByID(ctx, tag)
if err != nil {
Expand Down

0 comments on commit b159931

Please sign in to comment.