Revert "perf: Replace isTeamMember util with an index DB call (#24066)" (#24078)

This reverts commit 8ed0fb6a07.
This commit is contained in:
Benny Joo authored and GitHub committed 2025-09-25 14:35:12 +00:00
1 parent 8ed0fb6a07
commit 7793cb20d1
4 files changed
+17 -29

No files matched your search

+1 -10
View File
@@ -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,
},
});
}