add: member by superrior

This commit is contained in:
ilham
2021-12-10 01:02:33 +07:00
parent 09c84f2cf5
commit 77d9a95d8a
6 changed files with 56 additions and 34 deletions

View File

@@ -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) {