Fix
This commit is contained in:
@@ -7,7 +7,7 @@ import { Game, Question } from '../Classes/Games.js';
|
||||
const router = express.Router();
|
||||
|
||||
router.post('/create/:theme', verifyToken, async (req, res) => {
|
||||
const game = new Game(null, req.user.id);
|
||||
const game = new Game(null, req.userId);
|
||||
await game.create();
|
||||
await game.generateQuestions(req.params.theme);
|
||||
return await respondWithStatusJSON(res, 200, {
|
||||
|
||||
Reference in New Issue
Block a user