mirror of
https://github.com/documenso/documenso.git
synced 2025-11-10 04:22:32 +10:00
16 lines
348 B
TypeScript
16 lines
348 B
TypeScript
import { prisma } from '@documenso/prisma';
|
|
|
|
export type DeleteTeamPendingOptions = {
|
|
userId: string;
|
|
pendingTeamId: number;
|
|
};
|
|
|
|
export const deleteTeamPending = async ({ userId, pendingTeamId }: DeleteTeamPendingOptions) => {
|
|
await prisma.teamPending.delete({
|
|
where: {
|
|
id: pendingTeamId,
|
|
ownerUserId: userId,
|
|
},
|
|
});
|
|
};
|