Skip to content

Commit

Permalink
chore(product-import): Refactor code - DRU #116
Browse files Browse the repository at this point in the history
  • Loading branch information
junajan committed Jun 6, 2018
1 parent e26174e commit 49a57a0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/product-import.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,9 @@ class ProductImport
"Removing #{res.failedSkus} skus from processing due to a reassignment error"
)
productsToProcess = @_filterOutProductsBySkus(productsToProcess, res.failedSkus)

# fetch existing products - they should be reassigned now
@_getExistingProductsForSkus(@_extractUniqueSkus(productsToProcess))
)
else
@_getExistingProductsForSkus(@_extractUniqueSkus(productsToProcess))
.then () =>
@_getExistingProductsForSkus(@_extractUniqueSkus(productsToProcess))
.then (queriedEntries) =>
if @defaultAttributesService
debug 'Ensuring default attributes'
Expand Down

0 comments on commit 49a57a0

Please sign in to comment.