From 32954a25364def562fac67845a2ff11bcdd37976 Mon Sep 17 00:00:00 2001 From: Bradley Bickford Date: Sun, 19 Nov 2023 19:42:21 -0500 Subject: [PATCH] Fixed the problem with registering a new call id --- utilities/sqlutil.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/utilities/sqlutil.js b/utilities/sqlutil.js index 7ba238e..4090f2b 100644 --- a/utilities/sqlutil.js +++ b/utilities/sqlutil.js @@ -161,12 +161,10 @@ async function inCall(server_snowflake, channel_snowflake) { async function registerNewCall(server_snowflake, channel_snowflake, call_start_time) { return connection_pool.query("INSERT INTO call_states (server_snowflake, channel_snowflake, call_start_time, call_end_time, call_consolidated, call_transcribed, call_data_cleaned_up) VALUES (?, ?, ?, NULL, 0, 0, 0)", [server_snowflake, channel_snowflake, call_start_time]).then(async ([rows, fields]) => { - console.log(`Register New Call:`) - console.log(rows) if (rows.length == 0) { return -1; } else { - return rows[0].call_id + return rows.insertId } }).catch((error) => { console.log(error)