Fixed
Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
This commit is contained in:
parent
84d3b3dba6
commit
97f4ac50f1
|
|
@ -190,7 +190,7 @@ func SaveTopics(repoID int64, topicNames ...string) error {
|
|||
}
|
||||
}
|
||||
|
||||
topicNames = topicNames[:0]
|
||||
topicNames = make([]string, 0, 25)
|
||||
if err := sess.Table("topic").Cols("name").
|
||||
Join("INNER", "repo_topic", "repo_topic.topic_id = topic.id").
|
||||
Where("repo_topic.repo_id = ?", repoID).Desc("topic.repo_count").Find(&topicNames); err != nil {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user