This is an automated email from the ASF dual-hosted git repository.

linkinstar pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git

commit d7136ba0c99ef6b39926dc11b9345dfac98a048c
Author: sy-records <[email protected]>
AuthorDate: Wed Dec 6 13:24:53 2023 +0800

    fix: timeline page sort error
---
 internal/repo/activity/activity_repo.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/internal/repo/activity/activity_repo.go 
b/internal/repo/activity/activity_repo.go
index 14ffa065..d41f0071 100644
--- a/internal/repo/activity/activity_repo.go
+++ b/internal/repo/activity/activity_repo.go
@@ -52,7 +52,7 @@ func NewActivityRepo(
 func (ar *activityRepo) GetObjectAllActivity(ctx context.Context, objectID 
string, showVote bool) (
        activityList []*entity.Activity, err error) {
        activityList = make([]*entity.Activity, 0)
-       session := ar.data.DB.Context(ctx).Desc("created_at")
+       session := ar.data.DB.Context(ctx).Desc("id")
 
        if !showVote {
                activityTypeNotShown := ar.getAllActivityType(ctx)

Reply via email to