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)); }