Commit 35f633b4 authored by Benjamin Bellamy's avatar Benjamin Bellamy 💬 Committed by Yassine Doghri
Browse files

fix: re-order graph values

parent e53f8192
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@ class AnalyticsPodcastByCountryModel extends Model
                    '`podcast_id`' => $podcastId,
                    '`date` >' => date('Y-m-d', strtotime('-1 week')),
                ])
                ->orderBy('`labels`', 'ASC')
                ->orderBy('`values`', 'DESC')
                ->findAll();

            cache()->save(
+1 −1
Original line number Diff line number Diff line
@@ -44,7 +44,7 @@ class AnalyticsPodcastByRegionModel extends Model
                    '`podcast_id`' => $podcastId,
                    '`date` >' => date('Y-m-d', strtotime('-1 week')),
                ])
                ->orderBy('`country_code`, `region_code`', 'ASC')
                ->orderBy('`values`', 'DESC')
                ->findAll();

            cache()->save(
+1 −1
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@ class AnalyticsWebsiteByBrowserModel extends Model
                    '`podcast_id`' => $podcastId,
                    '`date` >' => date('Y-m-d', strtotime('-1 week')),
                ])
                ->orderBy('`browser`', 'ASC')
                ->orderBy('`values`', 'DESC')
                ->findAll();

            cache()->save(
+2 −1
Original line number Diff line number Diff line
@@ -40,7 +40,8 @@ class AnalyticsWebsiteByEntryPageModel extends Model
                    '`podcast_id`' => $podcastId,
                    '`date` >' => date('Y-m-d', strtotime('-1 week')),
                ])
                ->orderBy('`entry_page`', 'ASC')
                ->orderBy('`values`', 'DESC')
                ->limit(10)
                ->findAll();

            cache()->save(
+4 −2
Original line number Diff line number Diff line
@@ -40,7 +40,8 @@ class AnalyticsWebsiteByRefererModel extends Model
                    '`podcast_id`' => $podcastId,
                    '`date` >' => date('Y-m-d', strtotime('-1 week')),
                ])
                ->orderBy('`referer`', 'ASC')
                ->orderBy('`values`', 'DESC')
                ->limit(10)
                ->findAll();

            cache()->save(
@@ -69,7 +70,8 @@ class AnalyticsWebsiteByRefererModel extends Model
                    '`podcast_id`' => $podcastId,
                    '`date` >' => date('Y-m-d', strtotime('-1 week')),
                ])
                ->orderBy('`domain`', 'ASC')
                ->orderBy('`values`', 'DESC')
                ->limit(10)
                ->findAll();

            cache()->save(