Skip to content

Commit

Permalink
Merge pull request #63 from guptarakesh198/main
Browse files Browse the repository at this point in the history
Update LeaderboardService.php
  • Loading branch information
cjmellor authored Feb 26, 2024
2 parents 384289b + c5be4a8 commit f04baf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/LeaderboardService.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function generate(bool $paginate = false, int $limit = null): array|Colle
->with(relations: ['experience', 'level'])
->orderByDesc(
column: Experience::select('experience_points')
->whereColumn(config('level-up.user.foreign_key'), 'users.id')
->whereColumn(config('level-up.user.foreign_key'), config('level-up.user.users_table').'.id')
->latest()
)
->take($limit)
Expand Down

0 comments on commit f04baf6

Please sign in to comment.