feat(api): sort versions after createdAt date
This commit is contained in:
parent
94a78ea3fc
commit
c18ad0a452
@ -34,7 +34,7 @@ export const func = async ({ userId, id }: { userId: string; id: string }) => {
|
|||||||
with: {
|
with: {
|
||||||
versions: {
|
versions: {
|
||||||
orderBy: (changelog_version, { desc }) => [
|
orderBy: (changelog_version, { desc }) => [
|
||||||
desc(changelog_version.releasedAt),
|
desc(changelog_version.createdAt),
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user