Adding the email to the schema

This commit is contained in:
okbel
2018-03-28 10:16:57 -03:00
parent 94d12dfbd4
commit b32d1ef717
3 changed files with 10 additions and 0 deletions
+6
View File
@@ -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
+3
View File
@@ -49,6 +49,9 @@ const SettingSchema = new Schema(
organizationName: {
type: String,
},
organizationContactEmail: {
type: String,
},
autoCloseStream: {
type: Boolean,
default: false,
+1
View File
@@ -27,5 +27,6 @@ module.exports = {
body: 'This is a test comment',
},
organizationName: 'Coral',
organizationContactEmail: 'coral@coraltest.coral',
},
};