Skip to content

Commit 32d97fb

Browse files
Add parentId condition to findOrganizationIdBySlug (calcom#26729)
1 parent a20ad44 commit 32d97fb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/features/ee/teams/repositories/TeamRepository.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,7 @@ export class TeamRepository {
472472
const org = await this.prismaClient.team.findFirst({
473473
where: {
474474
slug,
475+
parentId: null,
475476
isOrganization: true,
476477
},
477478
select: {

0 commit comments

Comments
 (0)