mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 16:23:06 +10:00
fix: refactor teams router (#1500)
This commit is contained in:
@ -10,7 +10,11 @@ export type UpdateTeamEmailOptions = {
|
||||
};
|
||||
};
|
||||
|
||||
export const updateTeamEmail = async ({ userId, teamId, data }: UpdateTeamEmailOptions) => {
|
||||
export const updateTeamEmail = async ({
|
||||
userId,
|
||||
teamId,
|
||||
data,
|
||||
}: UpdateTeamEmailOptions): Promise<void> => {
|
||||
await prisma.$transaction(async (tx) => {
|
||||
await tx.team.findFirstOrThrow({
|
||||
where: {
|
||||
|
||||
Reference in New Issue
Block a user