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