Explorar el Código

fixed measurements

= hace 4 años
padre
commit
7f53cc757f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/Models/Client.php

+ 1 - 1
app/Models/Client.php

@@ -118,7 +118,7 @@ class Client extends Model
         return $this->hasMany(Measurement::class, 'client_id', 'id')
             /*->distinct('label')*/
             ->where('is_removed', false)
-            ->orderBy('effective_date', 'desc');
+            ->orderBy('ts', 'desc');
     }
 
     public function nonZeroMeasurements()