Merge branch 'development' into 'devops-staging'
fix: product See merge request empatnusabangsa/ppob/ppob-backend!12
This commit is contained in:
commit
1653f0a7f8
|
@ -46,7 +46,7 @@ export class ProductService {
|
|||
findAll(page) {
|
||||
return this.productRepository.findAndCount({
|
||||
skip: page * 10,
|
||||
relations: ['subCategories'],
|
||||
relations: ['sub_categories'],
|
||||
take: 10,
|
||||
order: {
|
||||
version: 'DESC',
|
||||
|
@ -57,8 +57,8 @@ export class ProductService {
|
|||
findAllByCategories(page, categories) {
|
||||
return this.productRepository.findAndCount({
|
||||
join: {
|
||||
alias: 'subCategories',
|
||||
innerJoin: { subCategories: 'roles.users' },
|
||||
alias: 'sub_categories',
|
||||
innerJoin: { sub_categories: 'roles.users' },
|
||||
},
|
||||
skip: page * 10,
|
||||
take: 10,
|
||||
|
|
Loading…
Reference in New Issue
Block a user