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 fa48c7f commit eb3ff5b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/graphql/queries/skills.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export const GET_USERS_SKILLS_AND_DESIRES_DETAIL_QUERY = gql`
) {
skillLevel
desireLevel
User(where: { active: { _eq: true } }) {
User(where: { active: { _eq: true } }): {
name
picture
email
Expand All @@ -209,7 +209,7 @@ export const GET_USERS_SKILLS_AND_DESIRES_DETAIL_BY_AGENCY_QUERY = gql`
where: {
name: { _eq: $skill }
UserSkillDesires: {
User {
User: {
active: { _eq: true }
UserLatestAgency: {
agency: { _eq: $agency }
Expand All @@ -223,15 +223,15 @@ export const GET_USERS_SKILLS_AND_DESIRES_DETAIL_BY_AGENCY_QUERY = gql`
UsersCurrentSkillsAndDesires(
order_by: { skillLevel: desc, desireLevel: desc }
where: {
User {
User: {
UserLatestAgency: { agency: { _eq: $agency } }
active: { _eq: true }
}
}
) {
skillLevel
desireLevel
User(where: { active: { _eq: true } }) {
User(where: { active: { _eq: true } }): {
name
picture
email
Expand Down

0 comments on commit eb3ff5b

Please sign in to comment.