From 3644706f785fda2411e95d59d69a86296d97024e Mon Sep 17 00:00:00 2001 From: "dian.chen" Date: Thu, 30 May 2024 22:55:44 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E6=8E=92=E5=90=8D=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/main/redis/redis.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/main/redis/redis.go b/service/main/redis/redis.go index aa82bf7..c766d8d 100644 --- a/service/main/redis/redis.go +++ b/service/main/redis/redis.go @@ -42,7 +42,7 @@ func UpdateReport(appId string, report *pb.Report) error { func GetRank(appId string, topCount int32) ([]*pb.Audience, error) { ctx := context.Background() key := ThisWeekScoreKey(appId) - cmd := client.ZRevRangeWithScores(ctx, key, 0, int64(topCount)) + cmd := client.ZRangeWithScores(ctx, key, 0, int64(topCount)) result, err := cmd.Result() if err != nil { return nil, err