From 6f43b3191a26311ce38462809051a4809c29f0c9 Mon Sep 17 00:00:00 2001 From: "NG (Graham)" Date: Sat, 7 Jun 2025 22:07:33 -0400 Subject: [PATCH] Fix steam ID querying as u64 (it's a string, actually) causing crashes in unexpected places --- rc_database/src/wrapper.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc_database/src/wrapper.rs b/rc_database/src/wrapper.rs index 14dc167..e06d5e3 100644 --- a/rc_database/src/wrapper.rs +++ b/rc_database/src/wrapper.rs @@ -24,7 +24,7 @@ impl Database { pub async fn user_by_steam_id(&self, steam_id: u64) -> Result, sea_orm::DbErr> { crate::schema::user::Entity::find() - .filter(crate::schema::user::Column::SteamId.eq(Some(steam_id))) + .filter(crate::schema::user::Column::SteamId.eq(Some(steam_id.to_string()))) .one(&self.orm) .await }