diff --git a/apps/api/src/changelog/byId.ts b/apps/api/src/changelog/byId.ts index fd4d364..4b48a7e 100644 --- a/apps/api/src/changelog/byId.ts +++ b/apps/api/src/changelog/byId.ts @@ -34,7 +34,7 @@ export const func = async ({ userId, id }: { userId: string; id: string }) => { with: { versions: { orderBy: (changelog_version, { desc }) => [ - desc(changelog_version.releasedAt), + desc(changelog_version.createdAt), ], }, },