fix test flakes (#25240)

This commit is contained in:
Anik Dhabal Babu authored and GitHub committed 2025-11-19 09:57:10 +02:00
1 parent 6169b92e98
commit 5cda123a4c
3 files changed
+5 -4

No files matched your search

+3 -1
View File
@@ -16,13 +16,15 @@ export const isAdminGuard = async (req: NextApiRequest) => {
where: {
userId: userId,
accepted: true,
role: {
in: [MembershipRole.OWNER, MembershipRole.ADMIN],
},
team: {
isOrganization: true,
organizationSettings: {
isAdminAPIEnabled: true,
},
},
OR: [{ role: MembershipRole.OWNER }, { role: MembershipRole.ADMIN }],
},
select: {
team: {