Up recents to 9

This commit is contained in:
Jonathan Cremin 2017-11-11 21:29:47 +00:00
parent 5d5bd605ea
commit f757152c7d
2 changed files with 4 additions and 4 deletions

View file

@ -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),
};

View file

@ -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),
};
}