@kfarranger/mapping-utils
Advanced tools
Comparing version 1.13.0 to 1.13.1
@@ -229,3 +229,14 @@ "use strict"; | ||
es = _ref5.es, setId = _ref5.setId, newTag = _ref5.newTag, subAction = _ref5.subAction, userId = _ref5.userId, callback = _ref5.callback; | ||
_context2.next = 3; | ||
if ((0, _sets.isTagValid)(newTag)) { | ||
_context2.next = 3; | ||
break; | ||
} | ||
return _context2.abrupt("return", { | ||
updatedResults: 0 | ||
}); | ||
case 3: | ||
_context2.next = 5; | ||
return es.updateByQuery({ | ||
@@ -262,11 +273,11 @@ index: _middleware.CONSTANTS.ES_ARRANGER_SET_INDEX, | ||
case 3: | ||
case 5: | ||
esResponse = _context2.sent; | ||
if (!(0, _lodash.isFunction)(callback)) { | ||
_context2.next = 7; | ||
_context2.next = 9; | ||
break; | ||
} | ||
_context2.next = 7; | ||
_context2.next = 9; | ||
return callback({ | ||
@@ -282,3 +293,3 @@ actionType: ActionTypes.UPDATE, | ||
case 7: | ||
case 9: | ||
return _context2.abrupt("return", { | ||
@@ -288,3 +299,3 @@ updatedResults: esResponse.updated | ||
case 8: | ||
case 10: | ||
case "end": | ||
@@ -291,0 +302,0 @@ return _context2.stop(); |
{ | ||
"name": "@kfarranger/mapping-utils", | ||
"version": "1.13.0", | ||
"version": "1.13.1", | ||
"description": "Transform Elasticsearch mappings", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
203396
4064