feat: update findByOwner method to exclude private filter for active products
Test Suite / test (24.15.0) (push) Has been cancelled

This commit is contained in:
Nils-Johan Gynther
2026-05-06 10:48:56 +02:00
parent 7a8f441390
commit 63d249b0a8
+1 -1
View File
@@ -35,7 +35,7 @@ export class ProductsService {
async findByOwner(userId: number) { async findByOwner(userId: number) {
return this.prisma.product.findMany({ 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 }, select: { id: true, name: true, canonicalName: true, categoryId: true },
orderBy: { name: 'asc' }, orderBy: { name: 'asc' },
}); });