fix: bonfire session deletion redis key is incorrect (#863)

* fix: presence key was incorrect after other related update

Signed-off-by: IAmTomahawkx <iamtomahawkx@gmail.com>

* rust analyzer try not to be annoying challenge

Signed-off-by: IAmTomahawkx <iamtomahawkx@gmail.com>

* fix: delete session redis key is wrong

Signed-off-by: IAmTomahawkx <iamtomahawkx@gmail.com>

---------

Signed-off-by: IAmTomahawkx <iamtomahawkx@gmail.com>
This commit is contained in:
Tom
2026-07-18 15:15:59 -07:00
committed by GitHub
parent 7784be21cc
commit 764a4dc81c

View File

@@ -71,7 +71,7 @@ async fn delete_session_internal(user_id: &str, session_id: u32, skip_region: bo
}
// Return whether this was the last session
let is_empty = __get_set_size(&mut conn, user_id).await == 0;
let is_empty = __get_set_size(&mut conn, &format!("sessions:{user_id}")).await == 0;
if is_empty {
__remove_from_set_string(&mut conn, ONLINE_SET, user_id).await;
info!("User ID {} just went offline.", &user_id);