Another commit
This commit is contained in:
parent
9b0f381673
commit
a689783b36
@ -161,7 +161,8 @@ async function inCall(server_snowflake, channel_snowflake) {
|
|||||||
|
|
||||||
async function registerNewCall(server_snowflake, channel_snowflake, call_start_time) {
|
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]) => {
|
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: ${rows}`)
|
console.log(`Register New Call:`)
|
||||||
|
console.log(rows)
|
||||||
if (rows.length == 0) {
|
if (rows.length == 0) {
|
||||||
return -1;
|
return -1;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user