mirror of
https://github.com/sigmasternchen/MyTube
synced 2025-03-15 04:48:55 +00:00
order videos by uploaded time desc
This commit is contained in:
parent
97df61e261
commit
f93727dae6
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ class VideoService
|
|||
|
||||
public function getVideos(User $user): array
|
||||
{
|
||||
return $this->videoRepository->findByUploader($user);
|
||||
return $this->videoRepository->findBy(["uploader" => $user], ["uploaded" => "DESC"]);
|
||||
}
|
||||
|
||||
public function addVideo(Video $video, UploadedFile $file)
|
||||
|
|
Loading…
Reference in a new issue