Fix example
This commit is contained in:
parent
12e626eda7
commit
2892a76b17
@ -110,7 +110,8 @@ export class CatsService {
|
|||||||
|
|
||||||
public findAll(query: PaginateQuery): Promise<Paginated<CatEntity>> {
|
public findAll(query: PaginateQuery): Promise<Paginated<CatEntity>> {
|
||||||
return paginate(query, this.catsRepository, {
|
return paginate(query, this.catsRepository, {
|
||||||
sortableColumns: ['name', 'color'],
|
sortableColumns: ['id', 'name', 'color'],
|
||||||
|
searchableColumns: ['name', 'color'],
|
||||||
defaultOrderby: [['color', 'DESC']],
|
defaultOrderby: [['color', 'DESC']],
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user