changed order of listActiveRooms

This commit is contained in:
gprunet
2026-01-19 15:04:45 +01:00
parent b5feb08e69
commit 3d5ceb9790
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -24,6 +24,8 @@ services:
build: ./srcs/backend
expose:
- "3001"
# ports:
# - "3001:3001"
depends_on:
- database
# volumes:
+1 -1
View File
@@ -34,7 +34,7 @@ async function listActiveRooms()
LEFT JOIN game_players p ON r.id = p.room_id
WHERE r.status = 'waiting'
GROUP BY r.id
ORDER BY r.created_at DESC`
ORDER BY player_count DESC, r.created_at DESC`
);
return (result.rows);
}