fix: Assign hub manager to order

This commit is contained in:
dhinesh-m24
2026-02-25 14:07:26 +05:30
parent fc771c1598
commit 5cc4b1f00e
4 changed files with 166 additions and 0 deletions

View File

@@ -64,3 +64,35 @@ query getTeamMembersByTeamId($teamId: UUID!) @auth(level: USER) {
}
}
}
query getHubManagersByTeamHubId($teamHubId: UUID!) @auth(level: USER) {
teamMembers(
where: {
teamHubId: { eq: $teamHubId }
role: { eq: MANAGER }
isActive: { eq: true }
inviteStatus: { eq: ACCEPTED }
}
) {
id
teamId
role
title
department
teamHubId
isActive
createdAt
user {
id
fullName
email
photoUrl
}
teamHub {
id
hubName
}
}
}