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?;
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user