From 63d249b0a894c170ab2fb3ccbaf32d35d3a6c602 Mon Sep 17 00:00:00 2001 From: Nils-Johan Gynther Date: Wed, 6 May 2026 10:48:56 +0200 Subject: [PATCH] feat: update findByOwner method to exclude private filter for active products --- backend/src/products/products.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/products/products.service.ts b/backend/src/products/products.service.ts index f8879e3a..ce90d281 100644 --- a/backend/src/products/products.service.ts +++ b/backend/src/products/products.service.ts @@ -35,7 +35,7 @@ export class ProductsService { async findByOwner(userId: number) { return this.prisma.product.findMany({ - where: { ownerId: userId, isPrivate: true, isActive: true }, + where: { ownerId: userId, isActive: true }, select: { id: true, name: true, canonicalName: true, categoryId: true }, orderBy: { name: 'asc' }, });