From b32d1ef71754907b6384b3f08e92afe1173f72ba Mon Sep 17 00:00:00 2001 From: okbel Date: Wed, 28 Mar 2018 10:16:57 -0300 Subject: [PATCH] Adding the email to the schema --- graph/typeDefs.graphql | 6 ++++++ models/setting.js | 3 +++ test/e2e/globals.js | 1 + 3 files changed, 10 insertions(+) diff --git a/graph/typeDefs.graphql b/graph/typeDefs.graphql index 2414faf1f..b6b1f14e1 100644 --- a/graph/typeDefs.graphql +++ b/graph/typeDefs.graphql @@ -834,6 +834,9 @@ type Settings { # organizationName is the name of the organization. organizationName: String + # organizationContactEmail is the email of the organization. + organizationContactEmail: String + # wordlist will return a given list of words. wordlist: Wordlist @@ -1290,6 +1293,9 @@ input UpdateSettingsInput { # organizationName is the name of the organization. organizationName: String + # organizationContactEmail is the email of the organization. + organizationContactEmail: String + # editCommentWindowLength is the length of time (in milliseconds) after a # comment is posted that it can still be edited by the author. editCommentWindowLength: Int diff --git a/models/setting.js b/models/setting.js index 1cca9c989..786020328 100644 --- a/models/setting.js +++ b/models/setting.js @@ -49,6 +49,9 @@ const SettingSchema = new Schema( organizationName: { type: String, }, + organizationContactEmail: { + type: String, + }, autoCloseStream: { type: Boolean, default: false, diff --git a/test/e2e/globals.js b/test/e2e/globals.js index 56bcd3868..371fe64c5 100644 --- a/test/e2e/globals.js +++ b/test/e2e/globals.js @@ -27,5 +27,6 @@ module.exports = { body: 'This is a test comment', }, organizationName: 'Coral', + organizationContactEmail: 'coral@coraltest.coral', }, };