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 f235efb commit f6b40fa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/graphql/queries/skills.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export const SEARCH_SKILLS_PROFILES_CERTIFICATIONS_QUERY = gql`
}
userCount
}
profiles: User(where: { name: { _ilike: $search } }) {
profiles: User(where: { name: { _ilike: $search }, active: { _eq: true } }) {
email
name
picture
Expand Down Expand Up @@ -177,7 +177,7 @@ export const GET_USERS_SKILLS_AND_DESIRES_DETAIL_QUERY = gql`
) {
skillLevel
desireLevel
User {
User(where: { active: { _eq: true } }) {
name
picture
email
Expand All @@ -203,19 +203,19 @@ export const GET_USERS_SKILLS_AND_DESIRES_DETAIL_BY_AGENCY_QUERY = gql`
where: {
name: { _eq: $skill }
UserSkillDesires: {
User: { UserLatestAgency: { agency: { _eq: $agency } } }
User: { UserLatestAgency: { agency: { _eq: $agency }, active: { _eq: true } } }
}
}
) {
id
name
UsersCurrentSkillsAndDesires(
order_by: { skillLevel: desc, desireLevel: desc }
where: { User: { UserLatestAgency: { agency: { _eq: $agency } } } }
where: { User: { UserLatestAgency: { agency: { _eq: $agency } }, active: { _eq: true } } }
) {
skillLevel
desireLevel
User {
User(where: { active: { _eq: true } }) {
name
picture
email
Expand Down

0 comments on commit f6b40fa

Please sign in to comment.