feat: added ability to assign event to all members (#13219)
* feat: added ability to assign event to all members * fix: types * chore: incorporate assignment for collective and round robin event sas well * fix: update event types query * feat: round robin hosts * fix: update * fix: update * fix: assignAllTeamMembers issue * design fixes --------- Co-authored-by: Peer Richelsen <[email protected]> Co-authored-by: CarinaWolli <[email protected]>
This commit is contained in:
21 files changed
+321
-47
No files matched your search
@@ -1,5 +1,6 @@
|
||||
import type z from "zod";
|
||||
|
||||
import { updateNewTeamMemberEventTypes } from "@calcom/lib/server/queries";
|
||||
import { prisma } from "@calcom/prisma";
|
||||
import type { Team, User } from "@calcom/prisma/client";
|
||||
import { MembershipRole } from "@calcom/prisma/enums";
|
||||
@@ -56,6 +57,7 @@ export const createOrUpdateMemberships = async ({
|
||||
},
|
||||
});
|
||||
}
|
||||
await updateNewTeamMemberEventTypes(user.id, team.id);
|
||||
return { membership, orgMembership };
|
||||
});
|
||||
};
|
||||
@@ -1,3 +1,4 @@
|
||||
import { updateNewTeamMemberEventTypes } from "@calcom/lib/server/queries";
|
||||
import prisma from "@calcom/prisma";
|
||||
|
||||
export async function joinOrganization({
|
||||
@@ -52,4 +53,6 @@ export async function joinAnyChildTeamOnOrgInvite({ userId, orgId }: { userId: n
|
||||
},
|
||||
}),
|
||||
]);
|
||||
|
||||
await updateNewTeamMemberEventTypes(userId, orgId);
|
||||
}
|
||||
Reference in new issue
Block a user