Multi-environment and multi-user construction
This commit is contained in:
@@ -311,7 +311,10 @@ export class DealsExcelService {
|
||||
const n = name?.trim();
|
||||
if (!n) return null;
|
||||
const row = await this.prisma.user.findFirst({
|
||||
where: { organizationId, fullName: { contains: n, mode: 'insensitive' } },
|
||||
where: {
|
||||
fullName: { contains: n, mode: 'insensitive' },
|
||||
memberships: { some: { organizationId } },
|
||||
},
|
||||
select: { id: true },
|
||||
});
|
||||
return row?.id ?? null;
|
||||
|
||||
Reference in New Issue
Block a user