Fixed issue with deleting characters throwing an error for incorrect typing

This commit is contained in:
2025-06-07 00:44:46 -04:00
parent 6107950bd9
commit ddc84f1027

View File

@@ -110,7 +110,7 @@ impl CharacterRepository {
let result = sqlx::query(query).bind(character_id).fetch_one(&self.pool).await?; let result = sqlx::query(query).bind(character_id).fetch_one(&self.pool).await?;
// Invalidate cache // Invalidate cache
let cache_key = format!("character:user:{}", result.get::<i32, &str>("user_id")); let cache_key = format!("character:user:{}", result.get::<&str, &str>("user_id"));
self.cache self.cache
.lock() .lock()
.await .await