Fixes to get voice working properly, not fully confident it'll work under pressure but it's done well in small tests

This commit is contained in:
2026-01-01 17:00:39 -05:00
parent 81b8085b51
commit 7df2bb6dfc
5 changed files with 39 additions and 15 deletions

View File

@@ -40,7 +40,9 @@ export async function returnOrCreateNewCallID(db: Repository<DBCall>, channel: V
export async function setCallEndTime(db: Repository<DBCall>, channel: VoiceBasedChannel) : Promise<DBCall | null> {
const call: DBCall | null = await db.findOne({
"where": {
channel: channel,
channel: {
channel_snowflake: channel.id
},
call_end_time: IsNull()
}
})