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