Skip to content

Commit

Permalink
fix(quries.Ranklist): use correct field name
Browse files Browse the repository at this point in the history
  • Loading branch information
AstatineAi authored and Prince213 committed May 19, 2024
1 parent 584737b commit 6fe4c78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/queries/reward.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func Ranklist(db *gorm.DB) ([]models.RanklistResponse, error) {
var ranklist []models.RanklistResponse
result := db.Model(&models.User{}).
Select("nick_name", "reward", "is_anonymous").
Order("rewards DESC").
Order("reward DESC").
Limit(30).
Scan(&ranklist)

Expand Down

0 comments on commit 6fe4c78

Please sign in to comment.