From 5b292b346ae99f99af65934aa0331992b169db39 Mon Sep 17 00:00:00 2001 From: Leufolium Date: Thu, 11 Apr 2024 14:03:40 +0800 Subject: [PATCH] by Robin at 20240411 --- app/mix/dao/mongo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/mix/dao/mongo.go b/app/mix/dao/mongo.go index 44ec7929..e6d7a8f4 100644 --- a/app/mix/dao/mongo.go +++ b/app/mix/dao/mongo.go @@ -4069,7 +4069,7 @@ func (m *Mongo) GetZoneMomentListByZid(ctx *gin.Context, req *zonemomentproto.Op if len(ctClause) != 0 { query["ct"] = ctClause } - err := col.Find(ctx, query).Sort("-ct").Skip(int64(req.Offset)).Limit(int64(req.Limit)).All(&list) + err := col.Find(ctx, query).Sort("-priority_in_zone").Skip(int64(req.Offset)).Limit(int64(req.Limit)).All(&list) if err == qmgo.ErrNoSuchDocuments { err = nil return list, err