Fixing fetching team with parent (#10677)
Co-authored-by: Omar López <zomars@me.com>
This commit is contained in:
co-authored by
Omar López
parent
4c38ea3329
commit
4dfbc46247
@@ -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