add: member by superrior
This commit is contained in:
@@ -55,8 +55,9 @@ export class ProductService {
|
||||
|
||||
findAllByCategories(page, categories) {
|
||||
return this.productRepository.findAndCount({
|
||||
where: {
|
||||
subCategories: categories,
|
||||
join: {
|
||||
alias: 'subCategories',
|
||||
innerJoin: { subCategories: 'roles.users' },
|
||||
},
|
||||
skip: page * 10,
|
||||
take: 10,
|
||||
@@ -130,7 +131,7 @@ export class ProductService {
|
||||
endDate: updatePriceProductDto.endDate,
|
||||
});
|
||||
|
||||
return
|
||||
return true;
|
||||
}
|
||||
|
||||
async remove(id: string) {
|
||||
|
||||
Reference in New Issue
Block a user