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:
@ -18,7 +18,7 @@ export const updateTeamMember = async ({
|
||||
teamId,
|
||||
teamMemberId,
|
||||
data,
|
||||
}: UpdateTeamMemberOptions) => {
|
||||
}: UpdateTeamMemberOptions): Promise<void> => {
|
||||
await prisma.$transaction(async (tx) => {
|
||||
// Find the team and validate that the user is allowed to update members.
|
||||
const team = await tx.team.findFirstOrThrow({
|
||||
|
||||
Reference in New Issue
Block a user