Merge branch 'main' into feat/separate-document-page

This commit is contained in:
David Nguyen
2024-02-13 11:15:31 +11:00
committed by GitHub
2 changed files with 15 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ export type TeamTransferStatusProps = {
className?: string; className?: string;
currentUserTeamRole: TeamMemberRole; currentUserTeamRole: TeamMemberRole;
teamId: number; teamId: number;
transferVerification: TeamTransferVerification | null; transferVerification: Pick<TeamTransferVerification, 'email' | 'expiresAt' | 'name'> | null;
}; };
export const TeamTransferStatus = ({ export const TeamTransferStatus = ({

View File

@@ -72,8 +72,20 @@ export const getTeamByUrl = async ({ userId, teamUrl }: GetTeamByUrlOptions) =>
where: whereFilter, where: whereFilter,
include: { include: {
teamEmail: true, teamEmail: true,
emailVerification: true, emailVerification: {
transferVerification: true, select: {
expiresAt: true,
name: true,
email: true,
},
},
transferVerification: {
select: {
expiresAt: true,
name: true,
email: true,
},
},
subscription: true, subscription: true,
members: { members: {
where: { where: {