add coverid
This commit is contained in:
@@ -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
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user