mirror of
https://github.com/shiroyashik/sculptor.git
synced 2025-12-06 13:01:12 +03:00
Release v0.3.1
See release body for more information
This commit is contained in:
parent
9e3bca85cd
commit
d5433101f1
12 changed files with 194 additions and 134 deletions
|
|
@ -23,7 +23,7 @@ pub async fn upload_avatar(
|
|||
let avatar_file = format!("avatars/{}.moon", &uuid);
|
||||
let mut file = BufWriter::new(fs::File::create(&avatar_file).await.unwrap());
|
||||
io::copy(&mut request_data.as_ref(), &mut file).await.unwrap();
|
||||
send_event(&state.broadcasts, &uuid);
|
||||
send_event(&state, &uuid).await;
|
||||
|
||||
Ok("ok")
|
||||
}
|
||||
|
|
@ -48,7 +48,7 @@ pub async fn delete_avatar(
|
|||
return Err(crate::ApiError::NotFound)
|
||||
}
|
||||
};
|
||||
send_event(&state.broadcasts, &uuid);
|
||||
send_event(&state, &uuid).await;
|
||||
|
||||
Ok("ok")
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue