add coverid
All checks were successful
Deploy App / build (push) Successful in 1m53s
Deploy App / deploy (push) Successful in 19s

This commit is contained in:
valere
2025-10-10 01:41:22 +02:00
parent e2c5693948
commit 2135b0fec6
2 changed files with 5 additions and 5 deletions

View File

@@ -43,6 +43,7 @@ export default eventHandler(async (event) => {
const date = new Date(year, month - 1, day, hour)
const card = getCardFromDate(date)
const url = `${urlPrefix}/${encodeURIComponent(file)}`
const coverId = `${urlPrefix}/cover/${encodeURIComponent(file)}`
return {
id: Number(`${year}${index + 1}`),
@@ -51,7 +52,7 @@ export default eventHandler(async (event) => {
title: title.trim(),
artist: artist.trim(),
url,
coverId: '',
coverId,
card
}
})