From 4bff0109cab4390ad4822c6b3899dec170acdf2b Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Tue, 8 Nov 2022 18:06:52 +1100 Subject: [PATCH] fix(config): update mysql_debug when using oxmysql_debug command Polling change isn't very compatible with this; will change in the future, but for now keep it simple. --- src/config/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/config/index.ts b/src/config/index.ts index a08c4da..612fe95 100644 --- a/src/config/index.ts +++ b/src/config/index.ts @@ -103,6 +103,7 @@ RegisterCommand( case 'add': if (!Array.isArray(mysql_debug)) mysql_debug = []; mysql_debug.push(args[1]); + SetConvar('mysql_debug', JSON.stringify(mysql_debug)) return console.log(`^3Added ${args[1]} to mysql_debug^0`); case 'remove': @@ -111,6 +112,7 @@ RegisterCommand( if (index === -1) return; mysql_debug.splice(index, 1); if (mysql_debug.length === 0) mysql_debug = false; + SetConvar('mysql_debug', JSON.stringify(mysql_debug) || 'false') return console.log(`^3Removed ${args[1]} from mysql_debug^0`); }