feat: Phone based bookings for everyone (#21320) (#22024)

* Revert "Revert "feat: Phone based bookings for everyone (#21320)" (#22018)"

This reverts commit 80e2118e68.

* chore: don't use repository

* chore: create getTeamWithOrganizationSettings function

---------

Co-authored-by: Hariom Balhara <[email protected]>
This commit is contained in:
Udit TakkarandHariom Balhara authored and GitHub committed 2025-06-27 10:09:04 +01:00
1 parent 0a3b3a69e3
commit 499cbd08ca
7 files changed
+444 -66

No files matched your search

+14
View File
@@ -393,4 +393,18 @@ export class TeamRepository {
inviteToken: inviteTokens.find((token) => token.identifier === `invite-link-for-teamId-${team.id}`),
}));
}
static async findTeamWithOrganizationSettings(teamId: number) {
return await prisma.team.findUnique({
where: { id: teamId },
select: {
parent: {
select: {
isOrganization: true,
organizationSettings: true,
},
},
},
});
}
}