mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-18 03:16:30 +08:00
feat: Change Website List Order Rule (#10036)
Refs https://github.com/1Panel-dev/1Panel/issues/9979
This commit is contained in:
parent
83ed835c9e
commit
4e6ebb53ac
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ func (w WebsiteService) PageWebsite(req request.WebsiteSearch) (int64, []respons
|
|||
websiteDTOs []response.WebsiteRes
|
||||
opts []repo.DBOption
|
||||
)
|
||||
opts = append(opts, repo.WithOrderRuleBy(req.OrderBy, req.Order))
|
||||
opts = append(opts, repo.WithOrderRuleBy(req.OrderBy, req.Order), repo.WithOrderRuleBy("updated_at", "descending"))
|
||||
if req.Name != "" {
|
||||
domains, _ := websiteDomainRepo.GetBy(websiteDomainRepo.WithDomainLike(req.Name))
|
||||
if len(domains) > 0 {
|
||||
|
|
Loading…
Add table
Reference in a new issue