feat: rewrite filter for product again
This commit is contained in:
parent
a17d6922ce
commit
16058db62c
|
@ -77,8 +77,8 @@ export class ProductController {
|
|||
) {
|
||||
const data = await this.productService.findAll(
|
||||
page,
|
||||
JSON.parse(supplier),
|
||||
JSON.parse(subcategory),
|
||||
supplier == 'null' ? null : supplier,
|
||||
subcategory == 'null' ? null : subcategory,
|
||||
);
|
||||
|
||||
return {
|
||||
|
@ -161,7 +161,7 @@ export class ProductController {
|
|||
) {
|
||||
const data = await this.productSubCategoriesService.findAll(
|
||||
page,
|
||||
JSON.parse(category),
|
||||
category == 'null' ? null : category,
|
||||
);
|
||||
|
||||
return {
|
||||
|
|
Loading…
Reference in New Issue
Block a user