From 8d525820dbf9665fd0228ba2ddffbf68002b2d8a Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Wed, 24 Jul 2024 23:09:43 -0500 Subject: [PATCH] Fix delete action for hidden photos --- src/photo/actions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/photo/actions.ts b/src/photo/actions.ts index aa5fa6e1..1292e697 100644 --- a/src/photo/actions.ts +++ b/src/photo/actions.ts @@ -239,7 +239,7 @@ export const toggleFavoritePhotoAction = async ( export const deletePhotosAction = async (photoIds: string[]) => runAuthenticatedAdminServerAction(async () => { for (const photoId of photoIds) { - const photo = await getPhoto(photoId); + const photo = await getPhoto(photoId, true); if (photo) { await deletePhoto(photoId).then(() => deleteFile(photo.url)); }