fix: uuid and dashes...
This commit is contained in:
parent
e89a9b4495
commit
5f8780ce2f
2 changed files with 2 additions and 2 deletions
|
@ -135,7 +135,7 @@ pub struct JoinRequest {
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Debug)]
|
#[derive(Serialize, Deserialize, Debug)]
|
||||||
pub struct JoinResponse {
|
pub struct JoinResponse {
|
||||||
pub id: Uuid,
|
pub id: String, // must be given back without dashes
|
||||||
pub name: String,
|
pub name: String,
|
||||||
pub properties: Vec<Property>,
|
pub properties: Vec<Property>,
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)
|
if Utc::now() - join.time < Duration::seconds(state.cfg.time_window as i64)
|
||||||
&& join.server.to_lowercase() == server_id.to_lowercase() {
|
&& join.server.to_lowercase() == server_id.to_lowercase() {
|
||||||
let response = proto::JoinResponse {
|
let response = proto::JoinResponse {
|
||||||
id: user.uuid,
|
id: user.uuid.simple().to_string(),
|
||||||
name: username.clone(),
|
name: username.clone(),
|
||||||
properties: vec![ skin ],
|
properties: vec![ skin ],
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue