removed console.log
This commit is contained in:
parent
43e3b9af26
commit
ed2885f19d
3 changed files with 0 additions and 12 deletions
|
|
@ -91,7 +91,6 @@ const route: FastifyPluginAsync = async (fastify): Promise<void> => {
|
|||
outcome: v.outcome,
|
||||
})),
|
||||
};
|
||||
console.log(JSON.stringify(typed_res));
|
||||
return res.makeResponse(200, 'success', 'tournamentData.success', {
|
||||
data: typed_res,
|
||||
});
|
||||
|
|
|
|||
|
|
@ -75,7 +75,6 @@ export class Tournament {
|
|||
else {
|
||||
this.state = 'ended';
|
||||
}
|
||||
console.log('next matchup ?:', this.matchup);
|
||||
if (this.currentGame === null) { this.state = 'ended'; }
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -47,7 +47,6 @@ export class StateI {
|
|||
socket.on('disconnect', () => this.cleanupUser(socket));
|
||||
socket.on('enqueue', () => this.enqueueUser(socket));
|
||||
socket.on('dequeue', () => this.dequeueUser(socket));
|
||||
socket.on('debugInfo', () => this.debugSocket(socket));
|
||||
socket.on('gameMove', (e) => this.gameMove(socket, e));
|
||||
socket.on('keepalive', () => this.keepAlive(socket));
|
||||
if (socket) {
|
||||
|
|
@ -164,15 +163,6 @@ export class StateI {
|
|||
socket.emit('queueEvent', 'unregistered');
|
||||
}
|
||||
|
||||
private debugSocket(socket: SSocket): void {
|
||||
console.log(({
|
||||
message: `socket debug for ${socket.id}`,
|
||||
userid: socket.authUser.id,
|
||||
queue: this.queue,
|
||||
users: this.users,
|
||||
}));
|
||||
}
|
||||
|
||||
private gameUpdate(gameId: TTTGameId, socket: SSocket): void {
|
||||
if (!this.users.has(socket.authUser.id)) return;
|
||||
const user = this.users.get(socket.authUser.id)!;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue