Explorar el Código

Update SearchApiV2Service, order statuses by timestamp

Daniel Supernault hace 5 años
padre
commit
c66d120cb7
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      app/Services/SearchApiV2Service.php

+ 1 - 0
app/Services/SearchApiV2Service.php

@@ -132,6 +132,7 @@ class SearchApiV2Service
 				return $q->offset($offset);
 			})
 			->limit($limit)
+			->orderByDesc('created_at')
 			->get();
 
 		$fractal = new Fractal\Manager();