diff --git a/server/src/product/products.service.ts b/server/src/product/products.service.ts index 48684a6..aa3ec3d 100644 --- a/server/src/product/products.service.ts +++ b/server/src/product/products.service.ts @@ -61,9 +61,6 @@ export class ProductsService { } async search(term: string, options: { page: number; limit: number }) { - if (!term || term.trim() === '') { - return { data: [], meta: { totalItems: 0, itemCount: 0, itemsPerPage: options.limit, totalPages: 0, currentPage: options.page } }; - } if (this.searchableFields.length === 0) { console.warn('Search is not configured for this entity.'); return { data: [], meta: { totalItems: 0, itemCount: 0, itemsPerPage: options.limit, totalPages: 0, currentPage: options.page } };