Skip to content
This repository has been archived by the owner on Feb 11, 2024. It is now read-only.

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean authored and github-actions[bot] committed Nov 17, 2023
1 parent 253a809 commit ca0075d
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/UpdateScripts/FixDigitalProductToggleForVariantProducts.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,21 @@ public function update()
->merge([
'is_digital_product' => null,
'product_variants' => [
'variants' => $productVariants['variants'],
'options' => collect($productVariants['options'])
->map(function ($option) {
$option['is_digital_product'] = true;
'variants' => $productVariants['variants'],
'options' => collect($productVariants['options'])
->map(function ($option) {
$option['is_digital_product'] = true;

return $option;
})
->values()
->toArray(),
return $option;
})
->values()
->toArray(),
],
])
->save();
});

Blueprint::in("collections.products")
Blueprint::in('collections.products')
->filter(fn ($blueprint) => $blueprint->hasField('is_digital_product'))
->filter(fn ($blueprint) => $blueprint->hasField('product_variants'))
->each(function ($blueprint) {
Expand Down

0 comments on commit ca0075d

Please sign in to comment.