update search add question search tags

This commit is contained in:
aichy126 2022-11-15 16:59:27 +08:00
parent 72866de5c1
commit 9e5196c0c2
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")