Merge branch 'ai/0.4.0/tag' into 'test'

update search add question search tags

See merge request opensource/answer!236
This commit is contained in:
aichy 2022-11-15 09:06:11 +00:00
commit beb5603b01
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ func (tr *tagRepo) GetTagListByName(ctx context.Context, name string, limit int,
session.Where(builder.Eq{"status": entity.TagStatusAvailable})
session.Limit(limit).Asc("slug_name")
if !hasReserved {
cond.Recommend = false
cond.Reserved = false
session.UseBool("recommend", "reserved")
} else {
session.UseBool("recommend")