feature/IO-2960-Employee-Email-Info - Fix
This commit is contained in:
@@ -49,6 +49,22 @@ export const CHECK_EMPLOYEE_NUMBER = gql`
|
||||
}
|
||||
`;
|
||||
|
||||
export const CHECK_EMPLOYEE_EMAIL = gql`
|
||||
query CHECK_EMPLOYEE_EMAIL($email: String!, $shopId: uuid!) {
|
||||
users(where: { email: { _ilike: $email } }) {
|
||||
email
|
||||
}
|
||||
employees_aggregate(where: { user_email: { _ilike: $email }, shopid: { _eq: $shopId } }) {
|
||||
aggregate {
|
||||
count
|
||||
}
|
||||
nodes {
|
||||
id
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const QUERY_ACTIVE_EMPLOYEES = gql`
|
||||
query QUERY_ACTIVE_EMPLOYEES {
|
||||
employees(where: { active: { _eq: true } }) {
|
||||
|
||||
Reference in New Issue
Block a user