feat: Change Website List Order Rule (#10036)

Refs https://github.com/1Panel-dev/1Panel/issues/9979
This commit is contained in:
CityFun
2025-08-18 10:35:13 +00:00
committed by GitHub
parent 83ed835c9e
commit 4e6ebb53ac
+1 -1
View File
@@ -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 {