Fixing fetching team with parent (#10677)
Co-authored-by: Omar López <[email protected]>
This commit is contained in:
1 parent
4c38ea3329
commit
4dfbc46247
1 file changed
+1
-1
@@ -99,7 +99,7 @@ export async function getTeamWithMembers(args: {
|
||||
const where: Prisma.TeamFindFirstArgs["where"] = {};
|
||||
|
||||
if (userId) where.members = { some: { userId } };
|
||||
if (orgSlug) {
|
||||
if (orgSlug && orgSlug !== slug) {
|
||||
where.parent = getSlugOrRequestedSlug(orgSlug);
|
||||
}
|
||||
if (id) where.id = id;
|
||||
|
||||
Reference in new issue
Block a user