Remove unnecessary console logs and clean up redundant comments.
This commit is contained in:
@@ -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) {
|
||||
@@ -184,13 +183,11 @@ 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;
|
||||
}
|
||||
|
||||
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);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user