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