From be069042ffb33ef88f486943b6a55dc166f80c47 Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Sun, 15 Nov 2020 23:02:55 +0100 Subject: [PATCH] fix correct order recent --- lib/Db/RecentMapper.php | 2 ++ src/components/Main.vue | 37 +------------------------------------ src/components/Table.vue | 3 +-- 3 files changed, 4 insertions(+), 38 deletions(-) diff --git a/lib/Db/RecentMapper.php b/lib/Db/RecentMapper.php index 10b640f..10a3dd2 100644 --- a/lib/Db/RecentMapper.php +++ b/lib/Db/RecentMapper.php @@ -25,6 +25,7 @@ class RecentMapper extends QBMapper { $qb = $this->db->getQueryBuilder(); $qb->select('*') ->from('recent') + ->orderBy('id', 'DESC') ->where($qb->expr()->eq('id', $qb->createNamedParameter($id, IQueryBuilder::PARAM_INT))) ->andWhere($qb->expr()->eq('user_id', $qb->createNamedParameter($userId))); return $this->findEntity($qb); @@ -39,6 +40,7 @@ class RecentMapper extends QBMapper { $qb = $this->db->getQueryBuilder(); $qb->select('*') ->from('recent') + ->orderBy('id', 'DESC') ->where($qb->expr()->eq('user_id', $qb->createNamedParameter($userId))); return $this->findEntities($qb); } diff --git a/src/components/Main.vue b/src/components/Main.vue index 20e773b..b2d1fc3 100644 --- a/src/components/Main.vue +++ b/src/components/Main.vue @@ -3,14 +3,6 @@ - - - - - -
-

{{ t('radio', 'Stream URL') }}

- -
-