Skip to content

Commit

Permalink
feat(productImport): push dist for testing (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
lojzatran committed Apr 12, 2018
1 parent 2a4f363 commit 04d36aa
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions dist/product-import.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,10 @@ ProductImport = (function() {
errorDir: this.errorDir
};
if (this.filterUnknownAttributes) {
return this._summary.unknownAttributeNames = [];
this._summary.unknownAttributeNames = [];
}
if (this.variantReassignmentOptions.enabled) {
return this._summary.variantReassignment = null;
}
};

Expand Down Expand Up @@ -213,9 +216,10 @@ ProductImport = (function() {
if (_this.variantReassignmentOptions.enabled) {
_this.logger.debug('execute reassignment process');
reassignmentService = new Reassignment(_this.client, _this.logger, _this.variantReassignmentOptions.retainExistingData);
return reassignmentService.execute(productsToProcess, _this._cache.productType).then(function(wasReassignmentExecuted) {
return reassignmentService.execute(productsToProcess, _this._cache.productType).then(function(statistics) {
var skus;
if (wasReassignmentExecuted) {
_this._summary.variantReassignment = statistics;
if (statistics.processed > 0) {
skus = _this._extractUniqueSkus(productsToProcess);
if (skus.length) {
return _this._getExistingProductsForSkus(skus);
Expand Down

0 comments on commit 04d36aa

Please sign in to comment.