tracked down more necessary updated, lots of _.bind()

This commit is contained in:
spalger
2016-05-19 12:47:33 -07:00
parent c7f6c09d8c
commit 4a77556866
11 changed files with 30 additions and 30 deletions

View File

@ -174,7 +174,7 @@ execTask('SETUP', function () {
return ENV.RUN
.split(',')
.map(function (name) {
return _.find(TASKS, { name: name.trim() });
return _v4.find(TASKS, { name: name.trim() });
})
.filter(Boolean);
});

View File

@ -91,7 +91,7 @@ module.exports = function (branch, done) {
clientActionModifier: overrides.clientActionModifier
};
var create = _.assign({}, _.find(apiSpec.actions, { name: 'index' }), {
var create = _.assign({}, _v4.find(apiSpec.actions, { name: 'index' }), {
name: 'create',
location: 'create',
proxy: 'index',

View File

@ -18,12 +18,12 @@ _v4.each(actions, function (action) {
api.<%= namespace %> = namespace();<%
}%>
<%= partials.client_action(action) %><%
<%= _v4.trimEnd(partials.client_action(action)) %><%
});
_v4.each(proxies, function (action) {%>
<%= partials.client_action_proxy(action) %><%
<%= _v4.trimEnd(partials.client_action_proxy(action)) %><%
});
%>

View File

@ -303,7 +303,7 @@ var client = new elasticsearch.Client({
selector: function (hosts) {
var myCountry = process.env.COUNTRY;
// first try to find a node that is in the same country
var selection = _.find(nodes, function (node) {
var selection = _v4.find(nodes, function (node) {
return node.host.country === myCountry;
});