sqlx: fixed topics GetTags data logic error

pull/351/head
Michael Li 2 years ago
parent 27455dcc19
commit 9d6d8f14b0
No known key found for this signature in database

@ -116,7 +116,7 @@ func (s *topicServant) GetTags(category core.TagCategory, offset int, limit int)
case core.TagCategoryHot:
err = s.stmtHotTags.Select(&res, offset, limit)
case core.TagCategoryNew:
err = s.stmtHotTags.Select(&res, offset, limit)
err = s.stmtNewestTags.Select(&res, offset, limit)
}
return
}

Loading…
Cancel
Save