fix: get product all
This commit is contained in:
@@ -54,7 +54,7 @@ export class ProductService {
|
||||
}
|
||||
|
||||
async findAll(page, supplier, categories, subCategories) {
|
||||
if (supplier != 'null' && !supplier) {
|
||||
if (supplier == 'null' || !supplier) {
|
||||
supplier = (await this.supplierService.findByActive()).id;
|
||||
}
|
||||
const baseQuery = this.productRepository
|
||||
|
||||
Reference in New Issue
Block a user