Skip to content

Commit

Permalink
Feat(user): only display for active users
Browse files Browse the repository at this point in the history
  • Loading branch information
ZenikAdrien committed Oct 25, 2024
1 parent 6e77a74 commit fa48c7f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/graphql/queries/skills.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@ export const GET_USERS_SKILLS_AND_DESIRES_DETAIL_BY_AGENCY_QUERY = gql`
where: {
name: { _eq: $skill }
UserSkillDesires: {
User(where: { active: { _eq: true } }): {
User {
active: { _eq: true }
UserLatestAgency: {
agency: { _eq: $agency }
}
Expand All @@ -222,7 +223,7 @@ export const GET_USERS_SKILLS_AND_DESIRES_DETAIL_BY_AGENCY_QUERY = gql`
UsersCurrentSkillsAndDesires(
order_by: { skillLevel: desc, desireLevel: desc }
where: {
User(where: { active: { _eq: true } }): {
User {
UserLatestAgency: { agency: { _eq: $agency } }
active: { _eq: true }
}
Expand Down

0 comments on commit fa48c7f

Please sign in to comment.