fix(medusa) : Improperly referenced product id in product import strategy (#2351)

* What - fixing PR #2350 

* Why - In the ProductImportStrategy class, the getImportInstructions improperly checks the product.id for each row. With it setup this way, products will always be considered new because the product.id column is not read here. So products will never be updated. [Link to the code line](https://github.com/medusajs/medusa/blob/bd941309161bcee4fbfc7918d310c426ba8d8f15/packages/medusa/src/strategies/batch-jobs/product/import.ts#L166)

* How - Replacing `row["product.product.id"]` to  `row["product.id"]`

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
This commit is contained in:
Ayush Sharma
2022-10-07 09:36:36 +00:00
committed by GitHub
co-authored by Oliver Windall Juhl
parent 3d255302b0
commit d8a5942d3d
9 changed files with 110 additions and 67 deletions
+6
View File
@@ -0,0 +1,6 @@
---
"@medusajs/medusa": patch
---
Fix wrongly referenced product id in ProductImportStrategy
Fix assigning nested objects properly