Skip to content

Commit

Permalink
stylo
Browse files Browse the repository at this point in the history
  • Loading branch information
arfenis committed Jun 11, 2024
1 parent c9ab6f3 commit 4364cb9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Domains/Inventory/Channels/Services/ChannelService.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public static function updateChannelVariant(Variants $variant, array $variantsCh
$variant->variantChannels()->forcedelete();
foreach ($variantsChannels as $variantChannel) {
$warehouse = WarehouseRepository::getById((int) $variantChannel['warehouses_id']);
$channel = ChannelRepository::getById((int) $variantChannel['channels_id'],$variant->product->company()->get()->first());
$channel = ChannelRepository::getById((int) $variantChannel['channels_id'], $variant->product->company()->get()->first());
$variantChannelDto = VariantChannel::from($variantChannel);

VariantService::addVariantChannel(
Expand All @@ -33,5 +33,4 @@ public static function updateChannelVariant(Variants $variant, array $variantsCh

return $variant;
}

}

0 comments on commit 4364cb9

Please sign in to comment.