From f468c4f7d625170bf3e6e6411502a8f021b65354 Mon Sep 17 00:00:00 2001 From: Marcus Netz Date: Sun, 15 Nov 2020 21:22:30 +0100 Subject: [PATCH] fix typo in sql query --- src/commands/remove.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/remove.js b/src/commands/remove.js index 21ff9ab..475fad2 100644 --- a/src/commands/remove.js +++ b/src/commands/remove.js @@ -3,7 +3,7 @@ module.exports = async (message, args, db) => { if(!isNaN(args[0]) && (args[1] === 'GD' || args[1] === 'ST' || args[1] === 'BH' || args[1] === 'EK')) { // eslint-disable-next-line no-undef - db.query('SELECT * FROM dsaeld WHERE userName = ' + '"' + message.author.tag + '"', function(err, row) { //the row is the user's data + db.query('SELECT * FROM dsageld WHERE userName = ' + '"' + message.author.tag + '"', function(err, row) { //the row is the user's data if(row && err) { message.reply('Es gab einen Fehler.'); }