feat: org-wide webhooks (#15144)

* feat: include org in teams list

* feat: org-wide webhooks

* Move getOrgIdFromMemberOrTeamId to packages/lib
This commit is contained in:
Kartik Saini authored and GitHub committed 2024-06-04 20:16:46 +00:00
1 parent d72f7f8a42
commit 4017c0e28f
20 files changed
+264 -63

No files matched your search

@@ -10,7 +10,9 @@ export function CreateButtonWithTeamsList(
isAdmin?: boolean;
}
) {
const query = trpc.viewer.teamsAndUserProfilesQuery.useQuery();
const query = trpc.viewer.teamsAndUserProfilesQuery.useQuery({
includeOrg: true,
});
if (!query.data) return null;
const teamsAndUserProfiles: Option[] = query.data