Switched from diesel to sqlx

This commit is contained in:
2024-09-05 11:52:14 -04:00
parent bce363db7e
commit d08800f9e0
42 changed files with 365 additions and 687 deletions

View File

@@ -106,7 +106,7 @@ pub async fn play_track(
let call_handler = handler_lock.lock().await;
call_handler.queue().is_empty()
};
let guild = GuildCache::get(guild_id.get() as i64)?;
let guild = GuildCache::get_by_id(guild_id.get() as i64).await?.unwrap();
let valid = is_valid_url(&track_url);
// Check if the URL is valid
if !valid.0 {