This reverts commit 8ed0fb6a07.
This commit is contained in:
1 parent
8ed0fb6a07
commit
7793cb20d1
4 files changed
+17
-29
No files matched your search
@@ -303,22 +303,13 @@ export class MembershipRepository {
|
||||
});
|
||||
}
|
||||
|
||||
static async findUniqueByUserIdAndTeamId({
|
||||
userId,
|
||||
teamId,
|
||||
accepted,
|
||||
}: {
|
||||
userId: number;
|
||||
teamId: number;
|
||||
accepted?: boolean;
|
||||
}) {
|
||||
static async findUniqueByUserIdAndTeamId({ userId, teamId }: { userId: number; teamId: number }) {
|
||||
return await prisma.membership.findUnique({
|
||||
where: {
|
||||
userId_teamId: {
|
||||
userId,
|
||||
teamId,
|
||||
},
|
||||
accepted,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user