Skip to content

Commit

Permalink
Update userInfos.ts (#696)
Browse files Browse the repository at this point in the history
* Update userInfos.ts

FIx : prendre uniquement en compte les users actifs

* Update userInfos.ts
  • Loading branch information
ZenikAdrien authored Apr 5, 2024
1 parent 6360e8d commit 85a6b9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/graphql/queries/userInfos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 85a6b9a

Please sign in to comment.