Skip to content

Commit

Permalink
change tgfiles order
Browse files Browse the repository at this point in the history
  • Loading branch information
alihardan committed Oct 19, 2023
1 parent 6e7a8d7 commit 9f76acf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/TGFileController.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class TGFileController extends Controller
*/
public function index()
{
return TGFile::orderBy('date', 'desc')->get(['file_unique_id', 'file_name', 'file_size', 'date']);
return TGFile::orderBy('message_date', 'desc')->orderBy('date', 'desc')->get(['file_unique_id', 'file_name', 'file_size', 'date']);
}

/**
Expand Down

0 comments on commit 9f76acf

Please sign in to comment.