Преглед на файлове

fixed selecting latest measurement

Josh преди 4 години
родител
ревизия
768c8030b2
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      app/Models/Client.php

+ 1 - 1
app/Models/Client.php

@@ -49,7 +49,7 @@ class Client extends Model
             ->distinct('label')
             ->where('is_removed', false)
             ->orderBy('label', 'asc')
-            ->orderBy('created_at', 'desc');
+            ->orderBy('effective_date', 'desc');
     }
 
     public function smses() {