Fix: Use bot_id instead of user_id in TALK suggestions Redis key
All checks were successful
BotServer CI / build (push) Successful in 17m21s

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2026-03-18 11:05:56 -03:00
parent ec4fcc094a
commit 1a9208b88e

View file

@ -17,7 +17,7 @@ pub async fn execute_talk(
if let Some(redis_client) = &state.cache { if let Some(redis_client) = &state.cache {
if let Ok(mut conn) = redis_client.get_multiplexed_async_connection().await { if let Ok(mut conn) = redis_client.get_multiplexed_async_connection().await {
let redis_key = format!("suggestions:{}:{}", user_session.user_id, user_session.id); let redis_key = format!("suggestions:{}:{}", user_session.bot_id, user_session.id);
info!("TALK: Fetching suggestions from Redis key: {}", redis_key); info!("TALK: Fetching suggestions from Redis key: {}", redis_key);
let suggestions_json: Result<Vec<String>, _> = redis::cmd("LRANGE") let suggestions_json: Result<Vec<String>, _> = redis::cmd("LRANGE")