1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Rename repo_model.SearchOrderByMap to repo_model.OrderByMap (#31359)

https://github.com/go-gitea/gitea/pull/30876#discussion_r1637112394
This commit is contained in:
6543
2024-06-15 08:45:02 +02:00
committed by GitHub
parent e37ecd1732
commit 78e8296e11
4 changed files with 22 additions and 22 deletions

View File

@@ -63,7 +63,7 @@ func RenderRepoSearch(ctx *context.Context, opts *RepoSearchOptions) {
sortOrder = setting.UI.ExploreDefaultSort
}
if order, ok := repo_model.SearchOrderByFlatMap[sortOrder]; ok {
if order, ok := repo_model.OrderByFlatMap[sortOrder]; ok {
orderBy = order
} else {
sortOrder = "recentupdate"