From cf204d09d01d125478f4f90bba4cc788070d0e13 Mon Sep 17 00:00:00 2001 From: ghost Date: Tue, 10 Oct 2023 22:58:30 +0300 Subject: [PATCH] fix last editions sort ordering --- src/Service/TorrentService.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Service/TorrentService.php b/src/Service/TorrentService.php index 907d109..dc729d2 100644 --- a/src/Service/TorrentService.php +++ b/src/Service/TorrentService.php @@ -348,6 +348,9 @@ class TorrentService ->findOneBy( [ 'torrentId' => $torrentId + ], + [ + 'id' => 'DESC' ] ); } @@ -358,7 +361,10 @@ class TorrentService ->getRepository(TorrentLocales::class) ->findBy( [ - 'torrentId' => $torrentId + 'torrentId' => $torrentId, + ], + [ + 'id' => 'DESC' ] ); }