tracked down more necessary updated, lots of _.bind()
This commit is contained in:
@ -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