fix: presence key was incorrect after other related update (#861)

* 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>

---------

Signed-off-by: IAmTomahawkx <iamtomahawkx@gmail.com>
This commit is contained in:
Tom
2026-07-17 23:07:29 -07:00
committed by GitHub
parent 07217dfac4
commit 81648dbf95

View File

@@ -87,7 +87,9 @@ async fn delete_session_internal(user_id: &str, session_id: u32, skip_region: bo
/// Check whether a given user ID is online
pub async fn is_online(user_id: &str) -> bool {
if let Ok(mut conn) = get_connection().await {
conn.exists(user_id).await.unwrap_or(false)
conn.exists(format!("sessions:{user_id}"))
.await
.unwrap_or(false)
} else {
false
}