From e64811a179d65e7863c00341274d2a1f89e726fe Mon Sep 17 00:00:00 2001 From: Bradley Bickford Date: Sun, 19 Nov 2023 18:57:34 -0500 Subject: [PATCH] More debug messages --- utilities/sqlutil.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utilities/sqlutil.js b/utilities/sqlutil.js index 28df1f0..5100f8b 100644 --- a/utilities/sqlutil.js +++ b/utilities/sqlutil.js @@ -145,10 +145,13 @@ async function getVoiceActiveUsers(server_snowflake, channel_snowflake) { async function inCall(server_snowflake, channel_snowflake) { return connection_pool.query("SELECT call_id FROM call_states WHERE server_snowflake = ? AND channel_snowflake = ? AND call_end_time IS NULL", [server_snowflake, channel_snowflake]).then(async (rows, fields) => { + console.log(`Num rows: ${rows.length}`) + console.log(rows) if (rows.length == 0) { return -1; } else { console.log("Made it here") + console.log(rows) return rows[0].call_id } }).catch((error) => {