Trying a different way of handling the rows variable

This commit is contained in:
Bradley committed 2023-11-11 21:57:59 -05:00
1 parent 4a3e470945
commit 8befc32453
1 file changed
+1 -1
+1 -1
View File
@@ -125,7 +125,7 @@ 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) {
if (rows.length == 0) {
console.log("Channel Already Registered")
return true
} else {