Modifications to fix some bugs with inputting ID

This commit is contained in:
Bradley committed 2023-11-19 19:10:55 -05:00
1 parent acaedb434c
commit abf8f10668
2 files changed
+12 -2

No files matched your search

+1 -1
View File
@@ -162,7 +162,7 @@ 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 VALUES (?, ?, ?)", [server_snowflake, channel_snowflake, call_start_time]).then(async ([rows, fields]) => {
return connection_pool.query("INSERT INTO call_states VALUES (?, ?, ?, NULL, 0, 0, 0)", [server_snowflake, channel_snowflake, call_start_time]).then(async ([rows, fields]) => {
if (rows.length == 0) {
return -1;
} else {