Fix API reliability and CORS config for hosted deployment

هذا الالتزام موجود في:
Abdul Kareem
2026-02-22 01:17:35 +03:00
الأصل cc11f2e063
التزام 090427cf2c
20 ملفات معدلة مع 267 إضافات و22 حذوفات

عرض الملف

@@ -26,7 +26,7 @@ class SendReservationReminders extends Command
$reservations = Reservation::query()
->where('status', 'approved')
->whereRaw(
"STR_TO_DATE(CONCAT(reservation_date,' ',reservation_time), '%Y-%m-%d %H:%i:%s') BETWEEN ? AND ?",
"(reservation_date::text || ' ' || reservation_time::text)::timestamp BETWEEN ? AND ?",
[$now->format('Y-m-d H:i:s'), $windowEnd->format('Y-m-d H:i:s')]
)
->get();
@@ -42,13 +42,14 @@ class SendReservationReminders extends Command
ReservationReminder::create([
'reservation_id' => $reservation->id,
'user_id' => $reservation->customer_id,
'send_at' => $sendAt,
'sent_at' => now(),
]);
Notification::create([
'user_id' => $reservation->customer_id,
'type' => 'reservation_reminder',
'type' => 'reminder',
'title' => 'Reservation reminder',
'body' => 'Your reservation is coming up in about ' . $minutes . ' minutes.',
'data_json' => [