A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
fix: move slugcheck to correct line
prithvidasgupta056c5ce1cdad
diff --git a/internal/service/tag_common/tag_common.go b/internal/service/tag_common/tag_common.goindex 467e3d65..1dfe4f7f 100644--- a/internal/service/tag_common/tag_common.go+++ b/internal/service/tag_common/tag_common.go@@ -837,16 +837,18 @@ func (ts *TagCommonService) UpdateTag(ctx context.Context, req *schema.UpdateTagif !exist {return errors.BadRequest(reason.TagNotFound)}++ //Adding equivalent slug formatting for tag update+ slugName := strings.ReplaceAll(req.SlugName, " ", "-")+ slugName = strings.ToLower(slugName)+//If the content is the same, ignore itif tagInfo.OriginalText == req.OriginalText &&tagInfo.DisplayName == req.DisplayName &&- tagInfo.SlugName == req.SlugName {+ tagInfo.SlugName == slugName {return nil}- //Adding equivalent slug formatting for tag update- slugName := strings.ReplaceAll(req.SlugName, " ", "-")- slugName = strings.ToLower(slugName)tagInfo.SlugName = slugNametagInfo.DisplayName = req.DisplayNametagInfo.OriginalText = req.OriginalText