From 85a6b9adad57b59a93e83f57cd1c9ea4327e730b Mon Sep 17 00:00:00 2001 From: Adrien Nortain <43404315+ZenikAdrien@users.noreply.github.com> Date: Fri, 5 Apr 2024 15:41:56 +0200 Subject: [PATCH] Update userInfos.ts (#696) * Update userInfos.ts FIx : prendre uniquement en compte les users actifs * Update userInfos.ts --- src/graphql/queries/userInfos.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/graphql/queries/userInfos.ts b/src/graphql/queries/userInfos.ts index 689912ac..b2fc8a9a 100644 --- a/src/graphql/queries/userInfos.ts +++ b/src/graphql/queries/userInfos.ts @@ -2,7 +2,7 @@ import { gql } from "@apollo/client"; export const GET_USER_QUERY = gql` query getUser($email: String!) { - User(where: { email: { _eq: $email } }) { + User(where: { email: { _eq: $email }, active: { _eq: true } }) { email name picture @@ -17,7 +17,7 @@ export const GET_USER_QUERY = gql` export const GET_USER_AGENCY_AND_ALL_AGENCIES_QUERY = gql` query getUserAgencyAndAllAgencies($email: String!) { - User(where: { email: { _eq: $email } }) { + User(where: { email: { _eq: $email }, active: { _eq: true } }) { email name picture