Up recents to 9
This commit is contained in:
parent
5d5bd605ea
commit
f757152c7d
2 changed files with 4 additions and 4 deletions
|
@ -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),
|
||||
};
|
||||
|
||||
|
|
|
@ -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),
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue