Fix: Use bot_id instead of user_id in TALK suggestions Redis key
All checks were successful
BotServer CI / build (push) Successful in 17m21s
All checks were successful
BotServer CI / build (push) Successful in 17m21s
This commit is contained in:
parent
ec4fcc094a
commit
1a9208b88e
1 changed files with 1 additions and 1 deletions
|
|
@ -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")
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue