Skip to content

Commit 5ffe5f6

Browse files
committed
self review
1 parent 454173f commit 5ffe5f6

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

packages/core/core-flows/src/product/steps/process-product-options-for-import.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,12 @@ export const processProductOptionsForImportStep = createStep(
3737

3838
for (const product of data.products) {
3939
if (product.options && product.options.length > 0) {
40-
// Create the product options
4140
const createdOptions = await productService.createProductOptions(
4241
product.options
4342
)
4443

4544
createdOptionIds.push(...createdOptions.map((opt) => opt.id))
4645

47-
// Build a map of option title to option ID
4846
const optionTitleToIdMap = new Map<string, string>()
4947
createdOptions.forEach((option) => {
5048
optionTitleToIdMap.set(option.title, option.id)
@@ -72,7 +70,6 @@ export const processProductOptionsForImportStep = createStep(
7270
Modules.PRODUCT
7371
)
7472

75-
// Delete created options (compensation)
7673
await productService.deleteProductOptions(createdOptionIds)
7774
}
7875
)

0 commit comments

Comments
 (0)