Merge branch 'development' into 'devops-staging'
fix: get product all See merge request empatnusabangsa/ppob/ppob-backend!34
This commit is contained in:
commit
04199d5841
|
@ -72,16 +72,16 @@ export class ProductService {
|
||||||
);
|
);
|
||||||
|
|
||||||
if (subCategories != 'null' && subCategories) {
|
if (subCategories != 'null' && subCategories) {
|
||||||
baseQuery.where('product.sub_categories_id = :id', {
|
baseQuery.andWhere('product.sub_categories_id = :id', {
|
||||||
id: subCategories,
|
id: subCategories,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (categories != 'null' && categories) {
|
// if (categories != 'null' && categories) {
|
||||||
baseQuery.where('sub_categories.category_id = :id', {
|
// baseQuery.andWhere('sub_categories.category_id = :id', {
|
||||||
id: categories,
|
// id: categories,
|
||||||
});
|
// });
|
||||||
}
|
// }
|
||||||
|
|
||||||
const data = await baseQuery
|
const data = await baseQuery
|
||||||
.skip(page * 10)
|
.skip(page * 10)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user