Skip to content

Commit

Permalink
fix: cron
Browse files Browse the repository at this point in the history
  • Loading branch information
kaioken committed Dec 24, 2024
1 parent cd07a93 commit 83c644d
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ public function handle()
$item = $order->items()->first();
$provider = $item->variant->product->getAttributeBySlug(ConfigurationEnum::PROVIDER_SLUG->value);

if ($provider == null) {
$this->info("Order ID: {$order->id} does not have a provider.");

continue;
}

match (strtolower($provider->value)) {
strtolower(ProviderEnum::E_SIM_GO->value) => $this->esimGoFulfillment($eSimService, $order, $iccid, $bundle),
strtolower(ProviderEnum::EASY_ACTIVATION->value) => [],
Expand Down

0 comments on commit 83c644d

Please sign in to comment.