Skip to content

Commit

Permalink
aggiunto data
Browse files Browse the repository at this point in the history
  • Loading branch information
pesto13 committed Sep 22, 2024
1 parent 329a30b commit 7a8a557
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Server/src/socket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ export function setupSocket(io: any) {

// TODO check params on react
socket.on(c.CREATE_LOBBY, (data: { code: string, numQuestionsParam: number, categories: string[], admin: string }) => {
console.log('Creo la lobby con [codice - domande - admin]: ', code, ' - ', numQuestionsParam, ' - ', admin);
const newGame = actualGameManager.createGame(code, numQuestionsParam, admin);
console.log('Creo la lobby con [codice - domande - admin]: ', data.code, ' - ', data.numQuestionsParam, ' - ', data.admin);
const newGame = actualGameManager.createGame(data.code, data.numQuestionsParam, data.admin);

const allSelectedQuestions = data.categories
.map(category => AllQuestions[category as QuestionCategories]) // Mappa le categorie alle domande
Expand Down

0 comments on commit 7a8a557

Please sign in to comment.