Merge remote-tracking branch 'origin/main'

This commit is contained in:
IM23a-cernik
2025-05-08 11:09:55 +02:00
2 changed files with 0 additions and 14 deletions
-3
View File
@@ -134,7 +134,6 @@ app.get("/balance", authenticateToken, (request, response) => {
"bearerAuth": []
}] */
const username = request.user.username;
console.log(username);
const allUsers = get_data();
const me = allUsers.find(u => u.username === username);
if (!me) {
@@ -177,7 +176,6 @@ async function createLobby() {
let data = await response.json();
let lobbyId = data.deck_id
await fetch(`https://www.deckofcardsapi.com/api/deck/${lobbyId}/pile/players/add/?cards=`)
console.log(lobbyId);
return lobbyId;
}
@@ -197,7 +195,6 @@ async function deleteLobby(id) {
async function joinLobby(lobbyId, player_name) {
let response = await fetch(`https://www.deckofcardsapi.com/api/deck/${lobbyId}/pile/${player_name}/add/?cards=`)
console.log(response);
}