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:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user