Fixed issue with deleting characters throwing an error for incorrect typing
This commit is contained in:
@@ -110,7 +110,7 @@ impl CharacterRepository {
|
||||
let result = sqlx::query(query).bind(character_id).fetch_one(&self.pool).await?;
|
||||
|
||||
// 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
|
||||
.lock()
|
||||
.await
|
||||
|
||||
Reference in New Issue
Block a user