mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-01 13:44:06 +01:00
parent
4abd63d378
commit
c4cdebacfe
1 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@ func ToDBOptions(ctx context.Context, options *internal.SearchOptions) (*issue_m
|
||||||
sortType = "leastupdate"
|
sortType = "leastupdate"
|
||||||
case internal.SortByCommentsAsc:
|
case internal.SortByCommentsAsc:
|
||||||
sortType = "leastcomment"
|
sortType = "leastcomment"
|
||||||
case internal.SortByDeadlineAsc:
|
case internal.SortByDeadlineDesc:
|
||||||
sortType = "farduedate"
|
sortType = "farduedate"
|
||||||
case internal.SortByCreatedDesc:
|
case internal.SortByCreatedDesc:
|
||||||
sortType = "newest"
|
sortType = "newest"
|
||||||
|
@ -46,7 +46,7 @@ func ToDBOptions(ctx context.Context, options *internal.SearchOptions) (*issue_m
|
||||||
sortType = "recentupdate"
|
sortType = "recentupdate"
|
||||||
case internal.SortByCommentsDesc:
|
case internal.SortByCommentsDesc:
|
||||||
sortType = "mostcomment"
|
sortType = "mostcomment"
|
||||||
case internal.SortByDeadlineDesc:
|
case internal.SortByDeadlineAsc:
|
||||||
sortType = "nearduedate"
|
sortType = "nearduedate"
|
||||||
default:
|
default:
|
||||||
sortType = "newest"
|
sortType = "newest"
|
||||||
|
|
Loading…
Reference in a new issue