From fa48c7f57150d5785ff6e28720a979f1e6fb8655 Mon Sep 17 00:00:00 2001 From: ZenikAdrien Date: Fri, 25 Oct 2024 17:10:46 +0200 Subject: [PATCH] Feat(user): only display for active users --- src/graphql/queries/skills.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/graphql/queries/skills.ts b/src/graphql/queries/skills.ts index 0c913e34..8fbed2e0 100644 --- a/src/graphql/queries/skills.ts +++ b/src/graphql/queries/skills.ts @@ -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 } } @@ -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 } }