Skip to content

Commit

Permalink
Don't pick specific funciton in require
Browse files Browse the repository at this point in the history
  • Loading branch information
pbazydlo committed Mar 9, 2017
1 parent 3e2ed8f commit b3afac9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/registry/routes/helpers/get-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ var Client = require('../../../../client');
var detective = require('../../domain/plugins-detective');
var eventsHandler = require('../../domain/events-handler');
var GetComponentRetrievingInfo = require('./get-component-retrieving-info');
var getComponentFallback = require('./get-component-fallback').getComponent;
var getComponentFallback = require('./get-component-fallback');
var NestedRenderer = require('../../domain/nested-renderer');
var RequireWrapper = require('../../domain/require-wrapper');
var sanitiser = require('../../domain/sanitiser');
Expand Down Expand Up @@ -76,7 +76,7 @@ module.exports = function(conf, repository){
// check route exist for component and version
if(err){
if(conf.fallbackRegistryUrl) {
return getComponentFallback(conf.fallbackRegistryUrl, options.headers, requestedComponent, callback);
return getComponentFallback.getComponent(conf.fallbackRegistryUrl, options.headers, requestedComponent, callback);
}

return callback({
Expand Down

0 comments on commit b3afac9

Please sign in to comment.