feat: update findByOwner method to exclude private filter for active products
Test Suite / test (24.15.0) (push) Has been cancelled
Test Suite / test (24.15.0) (push) Has been cancelled
This commit is contained in:
@@ -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' },
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user