Skip to content

Commit

Permalink
Test7 'leaveLobby' function
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashikkalis committed Dec 23, 2024
1 parent 4c17132 commit 0504d5e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/lobbys.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ function joinLobby($userId, $lobbyId) {

function leaveLobby($lobbyId) {
$pdo = getDatabaseConnection();
$lobbyId = "SELECT id FROM game_lobbies";

try {
$sql = "DELETE FROM game_lobbies WHERE id = ?";
Expand Down

0 comments on commit 0504d5e

Please sign in to comment.