commercetools / sphere-node-sdk

Officially supported Node.js SDK library for working with the SPHERE.IO HTTP API, with OAuth2 support.
http://sphereio.github.io/sphere-node-sdk/
MIT License
16 stars 8 forks source link

Remove sku in product update action when setAttributeInAllVariants is used #346

Open lojzatran opened 3 years ago

lojzatran commented 3 years ago

Description

When there's setAttributeInAllVariants action, there's no need to add sku to the update action. https://docs.commercetools.com/http-api-projects-products#set-attribute-in-all-variants

Possible Solution

Use delete action.sku to remove sku. Check if this is the only place where sku should be removed. https://github.com/sphereio/sphere-node-sdk/blob/master/src/coffee/sync/utils/product.coffee#L545