Fix latest songs/albums

This commit is contained in:
An Phan 2016-08-13 10:52:09 +08:00
parent e02d72b3b0
commit 7bf47b2d50
No known key found for this signature in database
GPG key ID: 05536BB4BCDC02A2
2 changed files with 2 additions and 2 deletions

View file

@ -178,6 +178,6 @@ export const albumStore = {
getRecentlyAdded(n = 6) {
const applicable = filter(this.all, album => album.id !== 1);
return take(orderBy(applicable, 'date_created', 'desc'), n);
return take(orderBy(applicable, 'created_at', 'desc'), n);
},
};

View file

@ -358,7 +358,7 @@ export const songStore = {
* @return {Array.<Object>}
*/
getRecentlyAdded(n = 10) {
return take(orderBy(this.all, 'date_created', 'desc'), n);
return take(orderBy(this.all, 'created_at', 'desc'), n);
},
/**