mirror of https://gitee.com/answerdev/answer.git
fix(tag): Only if tag info is all same than without edit.
This commit is contained in:
parent
06aa09bf35
commit
15777fccbc
|
@ -661,7 +661,9 @@ func (ts *TagCommonService) UpdateTag(ctx context.Context, req *schema.UpdateTag
|
|||
return errors.BadRequest(reason.TagNotFound)
|
||||
}
|
||||
//If the content is the same, ignore it
|
||||
if tagInfo.OriginalText == req.OriginalText {
|
||||
if tagInfo.OriginalText == req.OriginalText &&
|
||||
tagInfo.DisplayName == req.DisplayName &&
|
||||
tagInfo.SlugName == req.SlugName {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue