瀏覽代碼

fixed get upcoming appointments

Josh 4 年之前
父節點
當前提交
f2844027ff
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      app/Models/Client.php

+ 2 - 1
app/Models/Client.php

@@ -108,7 +108,8 @@ class Client extends Model
 
     public function upcomingAppointments() {
         return $this->hasMany(Appointment::class, 'client_id', 'id')
-          //  ->where('raw_start_time', '>', date('Y-m-d H:i:s'))
+           // ->where('raw_start_time', '>', date('Y-m-d H:i:s'))
+            ->whereIn('status', ['CREATED', 'CONFIRMED'])
             ->orderBy('start_time', 'desc');
     }