-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/cleanup config file #970
Conversation
@frenchbread is this ready for review? |
@brylie Yes. Please review. |
@@ -12,7 +12,7 @@ Meteor.methods({ | |||
|
|||
// Send the e-mail | |||
Email.send({ | |||
to: Settings.findOne().contactForm_toEmail, | |||
to: Settings.findOne().contactForm.toEmail, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens if this setting is not present? E.g. if the contact form 'to email' has not been provided in the settings collection? I suspect we will get an exception, which needs to be prevented or handled here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we check if there is a value set in settings and if not, use email address from settings.json
Closes:
Changes