feat(api): dont return current date on missing releasedAt version date

This commit is contained in:
Lars Hampe 2024-10-10 22:06:23 +02:00
parent 3aea656943
commit 94a78ea3fc

View File

@ -46,9 +46,7 @@ app.openapi(byId, async (c) => {
changelogId: result.changelogId || '',
version: result.version || '',
status: result.status || 'draft',
releasedAt: result.releasedAt
? result.releasedAt.toISOString()
: new Date().toISOString(),
releasedAt: result.releasedAt,
commits: result.commits || [],
markdown: result.markdown || '',
},