From 5bb9a27e3c069fb7c8d207e345b715f1399b7470 Mon Sep 17 00:00:00 2001 From: Lukian Date: Tue, 17 Sep 2024 13:57:52 +0200 Subject: [PATCH] bug fixes --- libs/mysql.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/mysql.js b/libs/mysql.js index 511ab1b..1f46ef6 100644 --- a/libs/mysql.js +++ b/libs/mysql.js @@ -72,7 +72,7 @@ function removeHelper(connection, game_id, user_id) { function getHelpers(connection, game_id) { return new Promise((resolve, reject) => { connection.query( - `SELECT name helpers.user_id FROM helpers JOIN users ON helpers.user_id = users.id WHERE game_id = ${game_id}`, + `SELECT name, helpers.user_id FROM helpers JOIN users ON helpers.user_id = users.id WHERE game_id = ${game_id}`, (error, result) => { if (error) { reject(new Error(error));