From 94e8646a9190bbbd2c54f97b52ea9d79bf423a0f Mon Sep 17 00:00:00 2001 From: Barry Low Date: Wed, 7 Nov 2018 14:41:12 -0800 Subject: [PATCH] Update schema naming for sendgrid mutations --- server/src/resolvers/mutation/sendgrid.js | 10 +++++----- server/src/schema/index.js | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/server/src/resolvers/mutation/sendgrid.js b/server/src/resolvers/mutation/sendgrid.js index e3340dace..0b8b487fb 100644 --- a/server/src/resolvers/mutation/sendgrid.js +++ b/server/src/resolvers/mutation/sendgrid.js @@ -10,12 +10,12 @@ if (dev){ } export default { - async sgSendNewsletterVerify(parent, { email }, ctx, info){ + async sendgrid_NewsletterSignup(parent, { token }, ctx, info) { + + }, + async sendgrid_NewsletterSignupVerify(parent, { email }, ctx, info){ }, - async sgNewsletterSignup(parent, { token }, ctx, info) { - }, - - async sgContact(parent, { email, subject, message }, ctx, info) { + async sendgrid_Contact(parent, { email, subject, message }, ctx, info) { }, } diff --git a/server/src/schema/index.js b/server/src/schema/index.js index c3f819a9b..39dc07d5c 100644 --- a/server/src/schema/index.js +++ b/server/src/schema/index.js @@ -1,8 +1,8 @@ export const typeDef = ` type Mutation { - sgSendNewsletterVerify(email: String!): String - sgNewsletterSignup(email: String!): String - sgContact(email: String!, subject: String!, Message: String!): String + sendgrid_NewsletterSignup(email: String!): String + sendgrid_NewsletterSignupVerify(email: String!): String + sendgrid_Contact(email: String!, subject: String!, Message: String!): String } schema {