Commit 4fd91f6e authored by iamhujiebin's avatar iamhujiebin

fix: recent

parent 1845196b
......@@ -56,8 +56,8 @@ func GetUserRecentRooms(model *domain.Model, userId uint64, offset, limit int64)
res, err := model.Redis.ZRangeByScoreWithScores(model, userKey, &redis.ZRangeBy{
Min: fmt.Sprintf("%d", time.Now().AddDate(0, -3, 0).Unix()),
Max: "+inf",
Offset: offset,
Count: limit,
//Offset: offset,
//Count: limit,
}).Result()
if err != nil {
return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment