wip
This commit is contained in:
@@ -8,6 +8,7 @@ use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Foundation\Bus\Dispatchable;
|
||||
use Illuminate\Queue\InteractsWithQueue;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
class SendVisaToSystem implements ShouldQueue
|
||||
@@ -27,10 +28,13 @@ class SendVisaToSystem implements ShouldQueue
|
||||
*/
|
||||
public function handle(): void
|
||||
{
|
||||
$ignore = DB::table('ignore_visa_payments')->pluck('payment_id');
|
||||
|
||||
$orderItems = VisaMasterPaymentOrderItem::query()
|
||||
->where('paid', true)
|
||||
->where('synced_with_system', false)
|
||||
->whereDate('created_at', '>', '2025-09-05')
|
||||
->whereIntegerNotInRaw('id', $ignore)
|
||||
->limit(2)
|
||||
->get()
|
||||
->each(function ($orderItem) {
|
||||
|
||||
Reference in New Issue
Block a user