Fix
This commit is contained in:
@@ -45,7 +45,7 @@ class Game {
|
||||
async generateQuestions(themeId) {
|
||||
try {
|
||||
const [rows] = await pool.execute(
|
||||
'SELECT * FROM questions ORDER BY RAND() LIMIT 10 WHERE theme = ?', [themeId],
|
||||
'SELECT * FROM questions WHERE theme = ? ORDER BY RAND() LIMIT 10', [themeId],
|
||||
);
|
||||
rows.forEach(async row => {
|
||||
const question = new Question(row.id, row.question);
|
||||
|
||||
Reference in New Issue
Block a user