tracked down more necessary updated, lots of _.bind()
This commit is contained in:
@ -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);
|
||||
});
|
||||
|
||||
@ -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',
|
||||
|
||||
@ -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)) %><%
|
||||
});
|
||||
%>
|
||||
|
||||
@ -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;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user