complete story 8.7 with qa tests
This commit is contained in:
@@ -31,8 +31,8 @@ class Send2HourReminders extends Command
|
||||
public function handle(): int
|
||||
{
|
||||
$targetTime = now()->addHours(2);
|
||||
$windowStart = $targetTime->copy()->subMinutes(15);
|
||||
$windowEnd = $targetTime->copy()->addMinutes(15);
|
||||
$windowStart = $targetTime->copy()->subMinutes(7);
|
||||
$windowEnd = $targetTime->copy()->addMinutes(7);
|
||||
|
||||
$consultations = Consultation::query()
|
||||
->where('status', ConsultationStatus::Approved)
|
||||
|
||||
@@ -52,8 +52,8 @@ class ConsultationReminder2h extends Notification implements ShouldQueue
|
||||
private function getSubject(string $locale): string
|
||||
{
|
||||
return $locale === 'ar'
|
||||
? 'تذكير: موعدك خلال ساعتين'
|
||||
: 'Reminder: Your consultation is in 2 hours';
|
||||
? 'استشارتك بعد ساعتين'
|
||||
: 'Your consultation is in 2 hours';
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -62,7 +62,7 @@ class ConsultationReminder2h extends Notification implements ShouldQueue
|
||||
private function shouldShowPaymentReminder(): bool
|
||||
{
|
||||
return $this->consultation->consultation_type->value === 'paid' &&
|
||||
$this->consultation->payment_status->value === 'pending';
|
||||
$this->consultation->payment_status->value !== 'received';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user