Skip to content

Conversation

jimlambie
Copy link
Contributor

Close #477

Search.prototype.canUse = function () {
let searchConfig = config.get('search')

if (!searchConfig.enabled) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tiny detail, but can we use config.get('search.enabled') instead of doing config.get('search') and then drilling into that? I believe Convict will only apply things like the default value if you get the property directly, so if in the future we decide to make search enabled by default, this wouldn't yield the result expected. I THINK!

Copy link
Contributor

@eduardoboucas eduardoboucas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

Copy link
Contributor

@mingard mingard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works very well!

@eduardoboucas eduardoboucas merged commit dc4acac into develop Aug 16, 2018
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.

3 participants