File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,9 @@ export class CategoryRepository extends Repository<Category> {
133133 user : { id : userId } ,
134134 } ,
135135 relations : [ 'contents' ] ,
136+ order : {
137+ createdAt : 'desc' ,
138+ } ,
136139 } ) ;
137140 }
138141
Original file line number Diff line number Diff line change 11import {
2- Injectable ,
3- NotFoundException ,
42 ConflictException ,
5- InternalServerErrorException ,
63 Inject ,
4+ Injectable ,
5+ InternalServerErrorException ,
6+ NotFoundException ,
77} from '@nestjs/common' ;
88import { EntityManager } from 'typeorm' ;
99import {
1010 AddCategoryBodyDto ,
1111 AddCategoryOutput ,
12- UpdateCategoryBodyDto ,
13- UpdateCategoryOutput ,
1412 DeleteCategoryOutput ,
1513 RecentCategoryList ,
1614 RecentCategoryListWithSaveCount ,
15+ UpdateCategoryBodyDto ,
16+ UpdateCategoryOutput ,
1717} from './dtos/category.dto' ;
1818import {
19- LoadPersonalCategoriesOutput ,
2019 LoadFrequentCategoriesOutput ,
20+ LoadPersonalCategoriesOutput ,
2121} from './dtos/load-personal-categories.dto' ;
2222import { Category } from './category.entity' ;
2323import { Content } from '../contents/entities/content.entity' ;
You can’t perform that action at this time.
0 commit comments