Browse Source

pass empty object to Placeholder when not in config

pull/850/head
Stephen Hess 8 years ago
parent
commit
988305686a
  1. 2
      routes/v1.js

2
routes/v1.js

@ -92,7 +92,7 @@ function addRoutes(app, peliasConfig) {
const pipService = require('../service/pointinpolygon')(peliasConfig.api.pipService);
const placeholderConfiguration = new PlaceHolder(peliasConfig.api.services.placeholder);
const placeholderConfiguration = new PlaceHolder(_.get(peliasConfig.api.services, 'placeholder', {}));
const placeholderService = serviceWrapper(placeholderConfiguration);
const isPlaceholderServiceEnabled = _.constant(placeholderConfiguration.isEnabled());

Loading…
Cancel
Save