Update email code to send an email per EditUserCell

using multiple recipients is break of privacy since user will be able
to see each other's emails.
This commit is contained in:
Kurt Hutten
2021-07-01 20:12:17 +10:00
parent 43376b8214
commit 084c4afdc3
7 changed files with 31 additions and 14 deletions

View File

@@ -5,7 +5,7 @@ import { Link, routes } from '@redwoodjs/router'
import { QUERY } from 'src/components/AdminPartsCell'
const DELETE_PART_MUTATION = gql`
mutation DeletePartMutation($id: String!) {
mutation DeletePartMutationAdmin($id: String!) {
deletePart(id: $id) {
id
}

View File

@@ -3,7 +3,7 @@ import { Link, routes } from '@redwoodjs/router'
import AdminParts from 'src/components/AdminParts'
export const QUERY = gql`
query PARTS {
query PARTS_ADMIN {
parts {
id
title

View File

@@ -5,7 +5,7 @@ import { navigate, routes } from '@redwoodjs/router'
import UserProfile from 'src/components/UserProfile'
export const QUERY = gql`
query FIND_USER_BY_ID($userName: String!) {
query FIND_USER_BY_USERNAME($userName: String!) {
user: userName(userName: $userName) {
id
userName

View File

@@ -24,7 +24,7 @@ export const QUERY = gql`
`
const UPDATE_PART_MUTATION = gql`
mutation UpdatePartMutation($id: String!, $input: UpdatePartInput!) {
mutation UpdatePartMutationIde($id: String!, $input: UpdatePartInput!) {
updatePart(id: $id, input: $input) {
id
}