From f757152c7d24a27f27b623450ba43252fe1182e9 Mon Sep 17 00:00:00 2001 From: Jonathan Cremin Date: Sat, 11 Nov 2017 21:29:47 +0000 Subject: [PATCH] Up recents to 9 --- routes/index.js | 4 ++-- routes/recent.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/routes/index.js b/routes/index.js index cd87636..da48d86 100644 --- a/routes/index.js +++ b/routes/index.js @@ -11,7 +11,7 @@ const recentQuery = { { model: models.artist }, { model: models.match }, ], - limit: 6, + limit: 9, order: [ ['updatedAt', 'DESC'], ], @@ -24,7 +24,7 @@ export default function* () { const initialState = { recents: recentAlbums.map(album => album.toJSON()) .concat(recentTracks.map(track => track.toJSON())) - .sort((a, b) => a.createdAt < b.createdAt).slice(0, 6), + .sort((a, b) => a.createdAt < b.createdAt).slice(0, 9), services: services.map(service => service.id), }; diff --git a/routes/recent.js b/routes/recent.js index 73690f2..8ea94b2 100644 --- a/routes/recent.js +++ b/routes/recent.js @@ -5,7 +5,7 @@ const recentQuery = { { model: models.artist }, { model: models.match }, ], - limit: 6, + limit: 9, order: [ ['updatedAt', 'DESC'], ], @@ -18,6 +18,6 @@ export default function* () { this.body = { recents: recentAlbums.map(album => album.toJSON()) .concat(recentTracks.map(track => track.toJSON())) - .sort((a, b) => a.createdAt < b.createdAt).slice(0, 6), + .sort((a, b) => a.createdAt < b.createdAt).slice(0, 9), }; }