feat(api): accept releasedAt date on version update
This commit is contained in:
parent
5cfb15886f
commit
3aea656943
@ -63,7 +63,7 @@ export const updateFunc = async ({
|
||||
.set({
|
||||
status: payload.status,
|
||||
markdown: payload.markdown,
|
||||
releasedAt: payload.status === 'published' ? new Date() : null,
|
||||
releasedAt: payload.releasedAt ? new Date(payload.releasedAt) : null,
|
||||
})
|
||||
.where(and(eq(changelog_version.id, id)))
|
||||
.returning()
|
||||
|
Loading…
Reference in New Issue
Block a user