diff --git a/utilities/sqlutil.js b/utilities/sqlutil.js index 34f9e35..8ce7739 100644 --- a/utilities/sqlutil.js +++ b/utilities/sqlutil.js @@ -163,12 +163,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(rows) - console.log(fields) if (rows.length == 0) { return -1; } else { - return rows[0].insertId + return rows[0].call_id } }).catch((error) => { console.log(error)