diff --git a/src/pages/500.astro b/src/pages/500.astro index 1075646..39f623c 100644 --- a/src/pages/500.astro +++ b/src/pages/500.astro @@ -10,6 +10,6 @@ import GuraGif from '../img/assets/doggo-thumbs-up.gif' Something went wrong.... yubi yubi - + diff --git a/src/pages/album/[id].astro b/src/pages/album/[id].astro index 9734563..a9e0f70 100644 --- a/src/pages/album/[id].astro +++ b/src/pages/album/[id].astro @@ -287,7 +287,7 @@ const coverImage = await getImage({ width={130} height={50} style={{ height: 'auto', width: '130px' }} - alt={provider} + alt={provider ?? 'Store icon'} src={`/img/provider/${provider}.jpg`} /> @@ -317,7 +317,7 @@ const coverImage = await getImage({ class='rounded-md' width={30} height={30} - alt={provider} + alt={provider ?? 'Provider'} src={`/img/provider/${provider}.png`} /> diff --git a/src/pages/api/album/delete.ts b/src/pages/api/album/delete.ts index 0871f0c..d41cccb 100644 --- a/src/pages/api/album/delete.ts +++ b/src/pages/api/album/delete.ts @@ -14,7 +14,7 @@ export const POST: APIRoute = async ({ request, locals }) => { let body try { - const formData = await parseForm(request) + const formData = await parseForm(await request.formData()) body = s.create(formData, DeleteAlbum) await prismaClient.albums.findUniqueOrThrow({ where: { id: body.albumId }, select: { id: true } }) } catch (err) { diff --git a/src/pages/maintenance.astro b/src/pages/maintenance.astro index 85a6a10..9e35194 100644 --- a/src/pages/maintenance.astro +++ b/src/pages/maintenance.astro @@ -14,6 +14,6 @@ import GuraGif from '../img/assets/doggo-thumbs-up.gif' >our Discord Server for updates - +