From 3e2bdaebc6efa8f85d3b5cd914115d47c4474812 Mon Sep 17 00:00:00 2001 From: Roland Schneider Date: Thu, 20 Nov 2025 00:04:03 +0100 Subject: [PATCH] add product and entity type --- server/src/product/products.service.ts | 3 --- 1 file changed, 3 deletions(-) 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 } };