mirror of
https://github.com/jorgev259/soc_site-astro.git
synced 2025-06-29 07:57:41 +00:00
Only handle cover on album edit when image is uploaded
This commit is contained in:
parent
c7d9605d81
commit
80742fffdb
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ export const POST: APIRoute = async ({ request, locals }) => {
|
||||||
})
|
})
|
||||||
|
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
cover ? handleCover(cover, 'album', albumId, tx) : undefined,
|
cover && cover.size > 0 ? handleCover(cover, 'album', albumId, tx) : undefined,
|
||||||
downloads
|
downloads
|
||||||
? Promise.all(
|
? Promise.all(
|
||||||
downloads.map((d) =>
|
downloads.map((d) =>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue