Can import photos

This commit is contained in:
2023-08-18 13:41:20 +02:00
parent 9e94cfc298
commit 5fa3d79b4c
8 changed files with 159 additions and 59 deletions

View File

@ -325,7 +325,7 @@ pub async fn set_photo(
m: FamilyAndMemberInPath,
MultipartForm(form): MultipartForm<UploadPhotoForm>,
) -> HttpResult {
let photo = photos_service::finalize_upload(form.photo).await?;
let photo = photos_service::finalize_upload(form.photo.into()).await?;
let mut member = m.to_member();
members_service::remove_photo(&mut member).await?;