bug
This commit is contained in:
@@ -5,7 +5,7 @@ import { FindCataloguesDto } from "../dto/find-catalogues.dto";
|
||||
export class CatalogueRepository extends EntityRepository<Catalogue> {
|
||||
|
||||
async findAllPaginated( opts: FindCataloguesDto = {}): Promise<PaginatedResult<Catalogue>> {
|
||||
const { page = 1, limit = 10, orderBy = 'order', order = 'asc', isActive } = opts;
|
||||
const { page = 1, limit = 10, orderBy = 'createdAt', order = 'desc', isActive } = opts;
|
||||
|
||||
const offset = (page - 1) * limit;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user