Fix example

This commit is contained in:
ppetzold 2020-06-28 19:39:36 +02:00
parent 12e626eda7
commit 2892a76b17

View File

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