0
0
Fork 0

Update log messages

This commit is contained in:
Oliver-Akins 2021-01-12 14:46:05 -07:00
parent c171d93963
commit 2cb82f2e8f

View file

@ -6,7 +6,7 @@ export default (io: Server, socket: Socket, data: SendCard) => {
// Assert game exists
if (!games[data.game_code]) {
log.debug(`Can't send a card in a game that doesn't exist: ${data.game_code}`);
log.debug(`Can't fing a game with code: ${data.game_code}`);
socket.emit(`UpdateHand`, {
status: 404,
message: `Game with code ${data.game_code} could not be found`,
@ -20,7 +20,7 @@ export default (io: Server, socket: Socket, data: SendCard) => {
// The writer is answering
if (data.from === "writer") {
game.log.debug(`Writer selected question to answer.`);
game.log.debug(`Writer selected question to answer`);
// Draw new cards for team
deck.discard(data.text);
@ -42,7 +42,7 @@ export default (io: Server, socket: Socket, data: SendCard) => {
// The writer is sending the card to the writer
else if (data.from === "guesser") {
game.log.debug(`Guesser is sending a card to the writer.`);
game.log.debug(`Guesser is sending a card to the writer`);
// Update the team's hand
team.removeCard(data.text);