This commit is contained in:
2026-03-12 01:54:14 +05:00
parent 45ca714b17
commit d0d49d6517

View File

@@ -27,12 +27,13 @@ class SendVisaToSystem implements ShouldQueue
*/
public function handle(): void
{
$orderItem = VisaMasterPaymentOrderItem::query()
$orderItems = VisaMasterPaymentOrderItem::query()
->where('paid', true)
->where('synced_with_system', false)
->whereDate('created_at', '>', '2025-09-05')
->first();
->limit(2)
->get()
->each(function ($orderItem) {
if (! $orderItem) {
return;
}
@@ -40,5 +41,6 @@ class SendVisaToSystem implements ShouldQueue
$result = syncVisaWithAzatAPI($orderItem);
if (isset($result['error'])) {}
});
}
}