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.
update tag search
aichy126c3c7eb962d5b
diff --git a/internal/repo/tag_common/tag_common_repo.go b/internal/repo/tag_common/tag_common_repo.goindex 02e1c6ae..b12810e0 100644--- a/internal/repo/tag_common/tag_common_repo.go+++ b/internal/repo/tag_common/tag_common_repo.go@@ -46,7 +46,7 @@ func (tr *tagCommonRepo) GetTagListByIDs(ctx context.Context, ids []string) (tag// GetTagBySlugName get tag by slug namefunc (tr *tagCommonRepo) GetTagBySlugName(ctx context.Context, slugName string) (tagInfo *entity.Tag, exist bool, err error) {tagInfo = &entity.Tag{}- session := tr.data.DB.Where("slug_name = LOWER(?)", slugName)+ session := tr.data.DB.Where("LOWER(slug_name) = ?", slugName)session.Where(builder.Eq{"status": entity.TagStatusAvailable})exist, err = session.Get(tagInfo)if err != nil {