diff --git a/src/contents/repository/content.repository.ts b/src/contents/repository/content.repository.ts index 8832e31..891e815 100644 --- a/src/contents/repository/content.repository.ts +++ b/src/contents/repository/content.repository.ts @@ -18,6 +18,7 @@ export class ContentRepository extends Repository { return this.createQueryBuilder('content') .where('content.userId = :userId', { userId: id }) .leftJoinAndSelect('content.category', 'category') + .orderBy('content.createdAt', 'DESC') .getMany(); }