fix: internship status ordering

This commit is contained in:
Veronika Fehérvíziová
2025-11-01 21:05:09 +01:00
parent 0932584faa
commit 95c49f89b3
2 changed files with 4 additions and 4 deletions
@@ -11,7 +11,7 @@ class InternshipStatusController extends Controller
{
public function get(int $id) {
$user = auth()->user();
$internship_statuses = InternshipStatus::whereInternshipId($id)->get()->makeHidden(['created_at', 'updated_at', 'id']);
$internship_statuses = InternshipStatus::whereInternshipId($id)->orderByDesc('changed')->get()->makeHidden(['created_at', 'updated_at', 'id']);
if(!$internship_statuses) {
return response()->json([