fix: uuid and dashes...

This commit is contained in:
dev@ftbsc 2023-01-23 04:19:53 +01:00
parent e89a9b4495
commit 5f8780ce2f
2 changed files with 2 additions and 2 deletions

View file

@ -135,7 +135,7 @@ pub struct JoinRequest {
#[derive(Serialize, Deserialize, Debug)]
pub struct JoinResponse {
pub id: Uuid,
pub id: String, // must be given back without dashes
pub name: String,
pub properties: Vec<Property>,
}

View file

@ -82,7 +82,7 @@ pub async fn has_joined_local(state: &AppState, username: &String, server_id: &S
if Utc::now() - join.time < Duration::seconds(state.cfg.time_window as i64)
&& join.server.to_lowercase() == server_id.to_lowercase() {
let response = proto::JoinResponse {
id: user.uuid,
id: user.uuid.simple().to_string(),
name: username.clone(),
properties: vec![ skin ],
};