feat(api): dont return current date on missing releasedAt version date
This commit is contained in:
parent
3aea656943
commit
94a78ea3fc
@ -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 || '',
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user