feat(api): sort versions after createdAt date

This commit is contained in:
Lars Hampe 2024-10-10 22:06:40 +02:00
parent 94a78ea3fc
commit c18ad0a452

View File

@ -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),
], ],
}, },
}, },