Skip to content
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

Merged
merged 4 commits into from
May 30, 2016
Merged

Feature/cleanup config file #970

merged 4 commits into from
May 30, 2016

Conversation

frenchbread
Copy link
Contributor

@frenchbread frenchbread commented May 26, 2016

@brylie
Copy link
Contributor

brylie commented May 27, 2016

@frenchbread is this ready for review?

@brylie brylie self-assigned this May 27, 2016
@frenchbread
Copy link
Contributor Author

@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,
Copy link
Contributor

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.

Copy link
Contributor Author

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

@brylie brylie merged commit d0064ec into develop May 30, 2016
@brylie brylie deleted the feature/cleanup-config-file branch May 30, 2016 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants