From 4a3e4709454d2abe20b266ff53b44d7ee1182b62 Mon Sep 17 00:00:00 2001 From: Bradley Bickford Date: Sat, 11 Nov 2023 21:56:07 -0500 Subject: [PATCH] Adding some more console noise for debugging --- utilities/sqlutil.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utilities/sqlutil.js b/utilities/sqlutil.js index 7bf6f10..da144e6 100644 --- a/utilities/sqlutil.js +++ b/utilities/sqlutil.js @@ -126,8 +126,10 @@ async function registerChannel(channel_snowflake, server_snowflake, channel_name async function registerChannelIfMissing(channel_snowflake, server_snowflake, channel_name) { return connection_pool.query("SELECT * FROM channels WHERE channel_snowflake = ?;", [channel_snowflake]).then(async ([rows, fields]) => { if (rows) { + console.log("Channel Already Registered") return true } else { + console.log("Channel Not Registered, registering") return await connection_pool.query("INSERT INTO channels VALUES (?, ?, ?)", [channel_snowflake, server_snowflake, channel_name]).then((rows, fields) => { return true })