Procházet zdrojové kódy

Hide past appointments in patients list

Vijayakrishnan Krishnan před 4 roky
rodič
revize
7b857a684e
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      app/Models/Client.php

+ 1 - 1
app/Models/Client.php

@@ -89,7 +89,7 @@ class Client extends Model
 
     public function upcomingAppointments() {
         return $this->hasMany(Appointment::class, 'client_id', 'id')
-            ->where('start_time', '>=', date('Y-m-d'))
+            ->where('start_time', '>', date('Y-m-d H:i:s'))
             ->orderBy('start_time', 'desc');
     }