Skip to content

Commit 2334149

Browse files
committed
fix rebase issues
1 parent 035534e commit 2334149

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

crates/api/src/site/purge/person.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ pub async fn purge_person(
2626
// Only let admin purge an item
2727
is_admin(&local_user_view)?;
2828

29-
// Read the person to get their images
30-
let person_id = data.person_id;
31-
let person = Person::read(&mut context.pool(), person_id).await?;
32-
3329
// Read the person to get their images
3430
let person_id = data.person_id;
3531

@@ -38,7 +34,7 @@ pub async fn purge_person(
3834
ImageUpload::get_all_by_local_user_id(&mut context.pool(), &local_user.id).await?;
3935

4036
for upload in pictrs_uploads {
41-
delete_image_from_pictrs(&upload.pictrs_alias, &upload.pictrs_delete_token, context)
37+
delete_image_from_pictrs(&upload.pictrs_alias, &upload.pictrs_delete_token, &context)
4238
.await
4339
.ok();
4440
}

0 commit comments

Comments
 (0)