bug fixes

This commit is contained in:
Lukian 2024-09-17 13:57:52 +02:00
parent bbaa7dca35
commit 5bb9a27e3c

View file

@ -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));