pub async fn delete_user_sessions(pool: &DBPool, user_id: i32) -> Result<()> {
        generic_service_err!(
            sqlx::query_file!("sql/session/delete_user_sessions.sql", user_id)
            .fetch_all(pool).await,
            "Failed to delete user sessions");

        Ok(())
    }
/// Deletes all sessions associated with a user
/// 
/// # Arguments
/// 
/// * `pool` - The database pool
/// * `user_id` - The ID of the user
Deletes all sessions associated with a user
Deletes all sessions associated with a user
pub async fn delete_user_sessions(pool: &DBPool, user_id: i32) -> Result<()> {
        generic_service_err!(
            sqlx::query_file!("sql/session/delete_user_sessions.sql", user_id)
            .fetch_all(pool).await,
            "Failed to delete user sessions");
        Ok(())
    }
pub async fn delete_user_sessions ( pool : & DBPool , user_id : i32 ) -> Result < ( ) > { generic_service_err ! ( sqlx query_file ( " " user_id ) fetch_all ( pool ) await " " ) ; Ok ( ( ) ) }
Deletes all sessions associated with a user
Deletes all sessions associated with a user
pool
&DBPool
user_id
i32
pool
&DBPool
user_id
i32