mirror of
https://github.com/documenso/documenso.git
synced 2025-11-18 02:32:00 +10:00
feat: wip
This commit is contained in:
@ -38,7 +38,6 @@ export const findTeamMemberInvites = async ({
|
||||
userId,
|
||||
},
|
||||
},
|
||||
// Todo: Teams - Should only certain roles be able to find members?
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@ -1,9 +1,10 @@
|
||||
import { P, match } from 'ts-pattern';
|
||||
|
||||
import { prisma } from '@documenso/prisma';
|
||||
import { Prisma, TeamMember } from '@documenso/prisma/client';
|
||||
import type { TeamMember } from '@documenso/prisma/client';
|
||||
import { Prisma } from '@documenso/prisma/client';
|
||||
|
||||
import { FindResultSet } from '../../types/find-result-set';
|
||||
import type { FindResultSet } from '../../types/find-result-set';
|
||||
|
||||
export interface FindTeamMembersOptions {
|
||||
userId: number;
|
||||
@ -37,7 +38,6 @@ export const findTeamMembers = async ({
|
||||
userId,
|
||||
},
|
||||
},
|
||||
// Todo: Teams - Should only certain roles be able to find members?
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@ -53,8 +53,6 @@ export const transferTeamOwnership = async ({ token }: TransferTeamOwnershipOpti
|
||||
);
|
||||
}
|
||||
|
||||
// Todo: Teams - Add billing message in email indicating that billing will be passed on when transferring a team.
|
||||
|
||||
await tx.team.update({
|
||||
where: {
|
||||
id: team.id,
|
||||
|
||||
@ -5,3 +5,7 @@ export const formatTeamUrl = (teamUrl: string, baseUrl?: string) => {
|
||||
|
||||
return `${formattedBaseUrl}/t/${teamUrl}`;
|
||||
};
|
||||
|
||||
export const formatDocumentsPath = (teamUrl?: string) => {
|
||||
return teamUrl ? `/t/${teamUrl}/documents` : '/documents';
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user