Skip to content

Commit

Permalink
ref(backed): Use groupBy
Browse files Browse the repository at this point in the history
  • Loading branch information
cleptric committed Nov 20, 2023
1 parent 5737144 commit ba00720
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Controller/Api/LeaderBoardController.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function get(): Response
->where([
'created >=' => $rangeTimeObject,
])
->group('sender_user_id'),
->groupBy('sender_user_id'),
], [
'Users.id = messages_sent.user_id',
])
Expand All @@ -68,7 +68,7 @@ public function get(): Response
->where([
'created >=' => $rangeTimeObject,
])
->group('receiver_user_id'),
->groupBy('receiver_user_id'),
], [
'Users.id = messages_received.user_id',
])
Expand Down

0 comments on commit ba00720

Please sign in to comment.